Comment 16 for bug 451635

Revision history for this message
Tobin Davis (gruemaster) wrote :

Ok, this is a bug in pulseaudio. Here is the scenario:

Sound-Applet->Preferences Output tab currently lists two connectors: Analog Output and Analog Headphones. Making the following changes has these effects:

Adding the following:
 [Element Line HP Swap]
 required = any
 switch = on
 override-map.1 = all
 override-map.2 = all-left,all-right
to /usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf will toggle the switch on when selecting "Analog Headphones" connector, however adding:
 [Element Line HP Swap]
 required = any
 switch = off
 override-map.1 = all
 override-map.2 = all-left,all-right
to /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf has no effect when selecting Analog Output.

Adding:
;;; 'Headphone Switch'

 [Element Line HP Swap]
 required = any
 switch = select
 override-map.1 = all
 override-map.2 = all-left,all-right

 [Option Line HP Swap:on]
 name = output-headphones
 priority = 10

 [Option Line HP Swap:off]
 name = output-speakers
 priority = 0
to the headphones.conf only changes the connectors list to Analog Output | Analog Headphones/output-headphones | Analog Headphones/output-speakers.

Adding the same lines to analog-output.conf only creates a similar list with Analog Headphones | Analog Output/output-headphones | Analog Output/output-speakers.

Ideally, a user should be able to select Analog Headphones and get the HP jack to work (similar to front panel HP jack on Intel boards). Selecting Analog Output should disable the switch, sending audio to the rear connectors (RCA jacks on dove board).