[pulseaudio-discuss] Pulseaudio Merges Speakers and Frontjack

Reece Dunn msclrhd at googlemail.com
Wed Oct 26 14:23:55 PDT 2011


On 26 October 2011 22:10, Philipp Gassmann <phiphi at phiphi.ch> wrote:
> Am Mit 26 Okt 2011 22:43:37 CEST schrieb Reece Dunn:
>> On 26 October 2011 21:23, Philipp Gassmann <phiphi at phiphi.ch> wrote:
>>> Hello
>>>
>>> I can no longer mute my builtin Speakers of my notebook separately from
>>> the headphone-jacks (I've two of those)
>>> In ubuntu 11.04 I could manually switch between Analog Output and Analog
>>> Speakers in the Audio-Settings, now there's only Analog Speakers
>>> In Alsamixer I have Master, Speaker, PCM, Front and some switches etc. I
>>> can adjust them, but when I change the Volume via Indicator or
>>> shortcuts, they are reset to 100, Master is leveled.
>>> It would be no problem if connected jacks would be recognized and
>>> speakers muted automatically, but that doesn't work either.
>>> Switching between Analog Speakers and Analog Output was also some kind
>>> of workaround, but It worked for me.
>>> I asked on IRC if anyone could help me adjusting the configuration.
>>> *mkbosmans told me to write a mail to the list.
>>> *Here's some extracts:
>>>
>>> *
>>> phiphi:* hello can anyone assist me in configuring my (pulse)audio on
>>> ubuntu, so that I can mute speakers?22:06:09
>>>
>>> *phiphi:* In ubuntu 11.04 I could manually switch between Analog Audio
>>> Output and Analog Speakers in the Audio-Settings22:07:06
>>>
>>> *mkbosmans:* phiphi, and now there's no choice in ports anymore?22:08:34
>>>
>>> *phiphi:* I still can mute Speaker via alsamixer, but the
>>> volume-indicator or whatever is behind it (guess pulseaudio) has bound
>>> the channel Speaker and Master together. When I change volume via
>>> indicator it resets the Speaker channel.22:08:59
>>>
>>> *phiphi:* No, now there's only Analog Speakers22:09:29
>>>
>>>
>>> *mkbosmans:* the problem lies in line 316: Removing path 'analog-output'
>>> as it is a subset of 'analog-output-speaker'22:26:23
>>>
>>> *mkbosmans:* I had problems with subset path removal too22:27:06
>>>
>>> *mkbosmans:* Can you send a problem description to the mailing list,
>>> with a link to this output? Please explain clearly (e.g. in case of
>>> functionality you are missing of the alsa-mixer control elements) why in
>>> your case the removal of the analog-output path is not desired22:28:17
>>>
>>> *mkbosmans:* phiphi, for reference see my mail to the list with the
>>> subject [PATCH] alsa-mixer: Take channel mask of volume element into
>>> account when finding a subset path
>>>
>>>
>>>
>>> killall pulseaudio ; LANG=C pulseaudio -vvvv > /tmp/pulseaudio_vvvv 2>&1
>>> Output: http://pastebin.com/kvcYSth8 <http://pastebin.com/kvcYSth8>
>>>
>>> Output and result differ between different tries. Sometimes I have no
>>> longer an "Internal Analog Device" and the problem-line does not appear.
>>> like in the following
>>> http://pastebin.com/vXwN3heW
>>>
>>> My sound-hardware is: HDA Intel, IDT 92HD75B3X5
>>>
>>> I'm glad If I can help improve pulseaudio (to work on my hardware ;-)
>>
>> For reference, there are also several bugs on Ubuntu's Launchpad
>> relating to this:
>>    https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/871633
>> (HP Pavilion dv6, IDT 92HD75B3)
>>    https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/870360
>> (HP Pavilion dv7, IDT 92HD75B3X5)
>>
>> For my system (the dv7), I get the same behaviour as described above.
>>
>> According to the bios info, the jacks on my system get reported as:
>>
>> Node 0x0b: [Jack] Mic at Ext Front
>> Node 0x0f: [Jack] Line Out at Ext Front
>> Node 0x1e: [Jack] SPDIF Out at Ext Front
>>
>> With alsamixer:
>>    Speaker -- effects the internal built-in speaker volume
>>    Front -- effects the volume of the headphone jacks
>>    Master -- effects both Speaker and Front volume
>>
>> Using hda-jack-sense-test:
>>
>> Pin 0x0b (Black Mic): present = left jack/connector on the front (microphone)
>> Pin 0x0f (Green Line Out): present = middle *and* right jack/connector
>> on the front (headphones)
>>
>> - Reece
>> _______________________________________________
>> pulseaudio-discuss mailing list
>> pulseaudio-discuss at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
>
> I have a dv8.
> Audio devices/Connectors are: 1 Stereo Speaker + 1 Bass Boost Speaker
> at the bottom + 2x jack headphones + 1x Mic/Line In
> There are some touch-controls for audio. Mute, Volume slider/+-, and a
> Treble/Bass switch and a corresponding slider, that has no effect.
> But that's not part of pulseaudio I guess, or is there a possibility to
> control the bass boost speaker?
>
>
> What's hda-jack-sense-test? OK, found it as .deb in the bugreport.
> I get the same results! But that means, that it's possible to automute
> it. there's hope ;)
>
> But I get only these two jacks, not as many as you have.
> root at phiphi-HP-Pavilion-dv8-Notebook-PC:~# hda-jack-sense-test
> Sigmatel specific "Power-Map: 0x00" verb ignored for the moment
> Sigmatel specific "Analog Loopback: 0x00" verb ignored for the moment
> Pin 0x0b (Black Mic): present = Yes
> Pin 0x0f (Green Line Out): present = No
>
> What's the status? Did you find a workaround?

Hi,

I followed the steps in the dv6 bug report:
-----
Open
/usr/share/pulseaudio/alsa-mixer/paths/analog-output-speaker.conf

Change:

[Element Front]
switch = mute
volume = merge
override-map.1 = all-front
override-map.2 = front-left,front-right

To:

[Element Front]
switch = ignore
volume = ignore

...and reboot to try the new settings.
-----

This means that:
  1/  pulseaudio no longer overrides my audio settings whenever the
computer reboots or when pulseaudio resets;
  2/  I need to explicitly use alsamixer to adjust the speaker and
headphone volume correctly.

This works for me as I have it configured for headphones all the time
(speaker volume at 0 and the headphone volume turned up) as I only
listen through headphones anyway.

According to the discussions on the bug, this is an issue with the
ALSA/kernel driver mis-detecting the jacks.

HTH,
- Reece


More information about the pulseaudio-discuss mailing list