alsa-mixer: Add support for the Headphone,1 element
authorTanu Kaskinen <tanuk@iki.fi>
Sat, 26 Dec 2020 20:29:06 +0000 (22:29 +0200)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Wed, 30 Dec 2020 15:49:09 +0000 (15:49 +0000)
commit21a531041ab0b5e52dbde1e3ed4ab8fb49198fda
tree3ca0e5b644c0d6322b8db60f88c2afd669a35342
parent0c14f89b8403c78ff6938359c9885f0a27f071ec
alsa-mixer: Add support for the Headphone,1 element

This is seen at least on HP EliteDesk 800 DM and HP EliteDesk 800 SFF.

This is used by the analog-output-headphones-2 path, but all other paths
on the same sink need to handle the element too. The existing
configuration is inconsistent between files regarding whether headphone
outputs should be muted or not when not using them. I chose to be
consistent within files, which means that Headphone,1 handling is
inconsistent between files in the same way that the existing Headphone
and Headphone2 handling is. (My opinion is that unused paths should be
always muted, but I didn't want to do that policy change in this patch.)

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/272>
src/modules/alsa/mixer/paths/analog-output-headphones-2.conf
src/modules/alsa/mixer/paths/analog-output-headphones.conf
src/modules/alsa/mixer/paths/analog-output-lineout.conf
src/modules/alsa/mixer/paths/analog-output-mono.conf
src/modules/alsa/mixer/paths/analog-output-speaker-always.conf
src/modules/alsa/mixer/paths/analog-output-speaker.conf