Bug 39814

Summary: Alsamixer: missing entries in analog output
Product: PulseAudio Reporter: Germano Massullo <germano.massullo>
Component: alsaAssignee: pulseaudio-bugs
Status: RESOLVED MOVED QA Contact: pulseaudio-bugs
Severity: normal    
Priority: medium CC: arun, lennart
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard: triaged
i915 platform: i915 features:
Attachments: alsa-info
alsa-info took when problem occours
alsa-info
aplay -L
pactl list

Description Germano Massullo 2011-08-03 13:03:19 UTC
Created attachment 49891 [details]
alsa-info

I have a Asus Xonar Essence ST soundboard (Chip: AV200) on a Fedora 15 KDE 64bit system
I can choose between these analog outputs: stereo, headphones and front panel
headphones.
Sometimes from this list stereo disappears... So the headphones are enabled by
default because stereo is not avaible.
By restarting the computer everything returns ok.

It does it since Fedora 14.
2.6.38.8-32.fc15.x86_64

I filled a bugreport there but they refused it because of a wrong component.
https://bugzilla.redhat.com/show_bug.cgi?id=720721
In a Fedora forum a person suggested me to fill a bug report in Pulseaudio website.
Not knowing which component was correct, I opted for the "core"
I attatched alsa-info.txt
Comment 1 Germano Massullo 2011-08-03 13:40:26 UTC
I have both 64bit and 32bit packages installed because I need them for 32bit games and Skype


# rpm -qa|grep pulse 
pulseaudio-utils-0.9.22-5.fc15.i686
alsa-plugins-pulseaudio-1.0.24-2.fc15.x86_64
kde-settings-pulseaudio-4.6-10.fc15.noarch
pulseaudio-libs-0.9.22-5.fc15.x86_64
pulseaudio-0.9.22-5.fc15.x86_64
pulseaudio-debuginfo-0.9.22-5.fc15.x86_64
alsa-plugins-pulseaudio-1.0.24-2.fc15.i686
pulseaudio-utils-0.9.22-5.fc15.x86_64
pulseaudio-libs-glib2-0.9.22-5.fc15.x86_64
pulseaudio-libs-0.9.22-5.fc15.i686
pulseaudio-module-x11-0.9.22-5.fc15.x86_64
pulseaudio-libs-glib2-0.9.22-5.fc15.i686
pulseaudio-module-bluetooth-0.9.22-5.fc15.x86_64
pulseaudio-libs-devel-0.9.22-5.fc15.i686
pulseaudio-libs-zeroconf-0.9.22-5.fc15.i686


# rpm -qa|grep alsa
alsa-plugins-jack-1.0.24-2.fc15.i686
alsa-utils-1.0.24.1-3.fc15.x86_64
alsa-plugins-pulseaudio-1.0.24-2.fc15.x86_64
alsa-plugins-vdownmix-1.0.24-2.fc15.i686
alsa-tools-firmware-1.0.24.1-2.fc15.x86_64
alsa-oss-libs-1.0.17-5.fc15.i686
alsa-lib-1.0.24-2.fc15.i686
alsa-plugins-arcamav-1.0.24-2.fc15.i686
alsa-firmware-1.0.24.1-2.fc15.noarch
alsa-plugins-pulseaudio-1.0.24-2.fc15.i686
alsa-plugins-oss-1.0.24-2.fc15.i686
alsa-lib-1.0.24-2.fc15.x86_64
report-config-localsave-0.22-0.fc15.x86_64
alsa-plugins-speex-1.0.24-2.fc15.i686
alsa-oss-1.0.17-5.fc15.x86_64
alsa-lib-debuginfo-1.0.24-2.fc15.x86_64
report-plugin-localsave-0.22-0.fc15.x86_64
alsa-lib-devel-1.0.24-2.fc15.i686
alsa-plugins-samplerate-1.0.24-2.fc15.i686
alsa-plugins-usbstream-1.0.24-2.fc15.i686
alsa-oss-devel-1.0.17-5.fc15.i686
alsa-plugins-upmix-1.0.24-2.fc15.i686
alsa-plugins-maemo-1.0.24-2.fc15.i686
Comment 2 Arun Raghavan 2011-08-03 20:35:03 UTC
Could you post the alsa-info output before and after this problem occurs?
Comment 3 Germano Massullo 2011-08-04 02:35:06 UTC
Okay. Please think of the alsa-info I've submitted as "before the problem".
When the problem will occur again I will submit the other alsa-info. I cannot submit it now because the problem happens in a totally random way.
Comment 4 Germano Massullo 2011-08-15 04:15:20 UTC
Created attachment 50229 [details]
alsa-info took when problem occours
Comment 5 Germano Massullo 2011-08-15 04:15:53 UTC
(In reply to comment #4)
> Created an attachment (id=50229) [details]
> alsa-info took when problem occours

I've just had the problem: here the alsa-info
Comment 6 Arun Raghavan 2012-03-14 22:18:57 UTC
When you say "choose between these analog outputs" do you mean the "Connector" as reported in Sound Settings or "Port" as shown in pavucontrol?

From what I can tell there's really no reason for a port to disappear.
Comment 7 Germano Massullo 2015-09-30 21:24:29 UTC
The bug is no longer happening
Comment 8 Germano Massullo 2016-03-22 08:21:24 UTC
Unfortunately I am back again.
Asus Xonar Essence ST (AV200) on Fedora 23 kernel 4.4.5-300.fc23.x86_64 
I am still (sometimes) experiencing the problem of speakers output not shown in alsamixer. By the way Pulseaudio settings show it, but obviously, selecting it does not activate any speaker output.

I attach
- alsa-info
- aplay -L  
- pactl list
logs taken while the problem is occurring


I am wondering if it is more appropriate to contact alsa developers, but the bugtracker in their website seems to be not working http://www.alsa-project.org/main/index.php/Main_Page
Comment 9 Germano Massullo 2016-03-22 08:22:23 UTC
Created attachment 122475 [details]
alsa-info
Comment 10 Germano Massullo 2016-03-22 08:22:37 UTC
Created attachment 122476 [details]
aplay -L
Comment 11 Germano Massullo 2016-03-22 08:22:49 UTC
Created attachment 122477 [details]
pactl list
Comment 12 Tanu Kaskinen 2016-03-22 10:47:52 UTC
So sometimes there's a headphone volume element in alsa and sometimes not?

Here are instructions for filing alsa bugs: http://alsa-project.org/main/index.php/Bug_Tracking
Comment 13 Raymond 2016-03-22 12:20:00 UTC
analog-output;output-speaker: Uscita analogica / Altoparlante (priority: 9910, latency offset: 0 usec)
			Parte dei profili: output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-stereo+input:iec958-stereo
		analog-output;output-headphones-1: Uscita analogica / Cuffie analogiche 1 (priority: 9909, latency offset: 0 usec)
			Parte dei profili: output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-stereo+input:iec958-stereo
		analog-output;output-headphones-2: Uscita analogica / Cuffie analogiche 2 (priority: 9908, latency offset: 0 usec)
			Parte dei profili: output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-stereo+input:iec958-stereo


	control.22 {
		iface MIXER
		name 'Analog Output'
		value Headphones
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 Speakers
			item.1 Headphones
			item.2 'FP Headphones'
		}
	}


if there is no jack detection of headphone and FP headphone , with only master playback volume, 

how can pulseaudio know it has headphones-1 and headphones-2


https://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths/analog-output-headphones-2.conf
Comment 15 Germano Massullo 2016-04-02 08:23:52 UTC
The audiocard has 3 different outputs
- Speakers
- Headphones
- FP Headphones
that have mutual exclusion, so that when you are using one of them, you cannot use the others. Sometimes the Speakers output disappears from alsamixer
Comment 16 Raymond 2016-04-02 08:59:46 UTC
is it similar to AC97 Mic Select ?

control.28 {
  iface MIXER
  name 'Mic Select'
  value Mic1
  comment {
   access 'read write'
   type ENUMERATED
   count 1
   item.0 Mic1
   item.1 Mic2
  }
 }

https://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/mixer/paths?id=31575f7766d6ff39665b64a3a04412eff1c39957


+[Element Mic Select]
+enumeration = select
+
+[Option Mic Select:Mic1]
+name = input-microphone
+priority = 20
+
+[Option Mic Select:Mic2]
+name = input-microphone
+priority = 19
Comment 17 Raymond 2016-04-02 08:59:55 UTC
is it similar to AC97 Mic Select ?

control.28 {
  iface MIXER
  name 'Mic Select'
  value Mic1
  comment {
   access 'read write'
   type ENUMERATED
   count 1
   item.0 Mic1
   item.1 Mic2
  }
 }

https://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/mixer/paths?id=31575f7766d6ff39665b64a3a04412eff1c39957


+[Element Mic Select]
+enumeration = select
+
+[Option Mic Select:Mic1]
+name = input-microphone
+priority = 20
+
+[Option Mic Select:Mic2]
+name = input-microphone
+priority = 19
Comment 18 Raymond 2016-04-02 09:06:29 UTC
		device.product.name = "82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "65536"
		device.buffering.fragment_size = "65536"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Built-in Audio Analog Stereo"
		alsa.mixer_name = "Analog Devices AD1981B"
		alsa.components = "AC97a:41445374"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-input-microphone;input-microphone-1: Microphone / Microphone 1 (priority 8720, available: unknown)
			properties:
				
		analog-input-microphone;input-microphone-2: Microphone / Microphone 2 (priority 8719, available: unknown)
			properties:
				
		analog-input-linein: Line In (priority 8100, available: unknown)
			properties:
				
		analog-input: Analog Input (priority 8000, available: unknown)
			properties:
				
		analog-input-video: Video (priority 7000, available: unknown)
			properties:
				
	active port: <analog-input-microphone;input-microphone-1>
Comment 19 Germano Massullo 2016-04-02 10:48:00 UTC
(In reply to Raymond from comment #16)
> is it similar to AC97 Mic Select ?
> // CUT

Is your question for me?

At the moment I am waiting for alsa mailing list subscription confirmation. As soon I receive it, I will send a message there and write here the URL of it.
Comment 20 Raymond 2016-04-02 12:33:31 UTC
https://lists.freedesktop.org/archives/pulseaudio-bugs/2009-November/003391.html


One some audio cards like the AV200/virtuoso (Asus Xonar Essence), there
 is an option to switch the Analog out between headphones, line-out and
 front panel output.

 It is natural and more user friendly if users can have this option under
 Output and Settings for the selected device.


;;; 'Analog Output'

[Element Analog Output]
enumeration = select

[Option Analog Output:Speakers]
name = output-speaker
priority = 10

[Option Analog Output:Headphones]
name = output-headphones
priority = 9

[Option Analog Output:FP Headphones]
name = output-headphones
priority = 8
Comment 21 Raymond 2016-04-02 13:23:27 UTC
This mean you need pulseaudio say your active port selection and restore the selected port after reboot to change alsa analog output switch as your sound cannot detect headphone is plugged
Comment 22 Raymond 2016-04-13 01:47:21 UTC
Can you post the pulseaudio verbose log? 

As the enum control and master playback volume are used by three ports (e.g speaker, hp, front panel) 

there is no other control used by the three ports
Comment 23 GitLab Migration User 2018-07-30 10:12:17 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/264.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.