alsa-mixer: disable the Auto-Mute once the system has speaker
authorHui Wang <hui.wang@canonical.com>
Thu, 10 Dec 2020 07:36:40 +0000 (15:36 +0800)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Thu, 10 Dec 2020 17:01:19 +0000 (17:01 +0000)
commit19e34d8d5bb9380ed70607b3f661c26df6d4836c
tree25d9a3c119b34d79dea87060038f12e4b4b57fd4
parent836ba89c4a3cd15efa33f9e70ed8e4764bcb3793
alsa-mixer: disable the Auto-Mute once the system has speaker

With the Auto-Mute enabled, if the headphone jack is plugged, the
alsa hda driver will mute the speaker and set pinctl of the speaker
to Hi-Z state, after this happens, even the pulseaudio unmute the
speaker, the speaker still couldn't output sound because the pinctl
is in Hi-Z state.

We found this issue on a Dell machine which has multi-function audio
jack, after the headphone is plugged in, the speaker's availability is
still unknown, users could select speaker from gnome-sound-setting,
but even the speaker is selected to be the active device, it couldn't
output sound.

The Auto-Mute is not useful if the pulseaudio is running since pa
could mute/unmute devices according to active port change, the ucm
for sof+hda already disabled the Auto-Mute, let us disable it for
hda audio if the machine has the internal speaker.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/433>
src/modules/alsa/mixer/paths/analog-output-speaker.conf