alsa-mixer: only use switch to mute Front in the Headphone path
authorHui Wang <hui.wang@canonical.com>
Fri, 28 May 2021 02:25:27 +0000 (10:25 +0800)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Wed, 16 Jun 2021 09:13:58 +0000 (09:13 +0000)
According to the alsa-info.txt in the pipewire issues of 747 and 1206,
the Front Playback Volume is shared by Headphone and Lineout or
Headphone and Speaker, But Headphone, Lineout or Speaker they all have
independent Playback Switch, change to only use switch to mute the
Lineout or Speaker. This could resolve the issues of 747 and 1206.

BugLink: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1206
BugLink: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/747
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/565>

src/modules/alsa/mixer/paths/analog-output-headphones-2.conf
src/modules/alsa/mixer/paths/analog-output-headphones.conf

index e98fe25..bda137d 100644 (file)
@@ -84,9 +84,12 @@ volume = off
 switch = off
 volume = off
 
+; On some machines, the Front Volume Control is shared by Headphone and Lineout,
+; or Headphone and Speaker, but they have independent Volume Switch. Here only
+; use switch to mute Lineout or Speaker.
 [Element Front]
 switch = off
-volume = off
+volume = zero
 
 [Element Rear]
 switch = off
index ac4ec65..3c62c5e 100644 (file)
@@ -126,9 +126,12 @@ volume = off
 switch = off
 volume = off
 
+; On some machines, the Front Volume Control is shared by Headphone and Lineout,
+; or Headphone and Speaker, but they have independent Volume Switch. Here only
+; use switch to mute Lineout or Speaker.
 [Element Front]
 switch = off
-volume = off
+volume = zero
 
 [Element Rear]
 switch = off