[pulseaudio-discuss] [PATCH] alsa-mixer: Mute headphones and speakers on line out path
David Henningsson
david.henningsson at canonical.com
Tue Jan 13 02:32:39 PST 2015
When line out path is active, we want to mute speakers for obvious
reasons, and headphones to avoid volume spikes.
Reported-by: TienFu Chen <tienfu.chen at canonical.com>
Signed-off-by: David Henningsson <david.henningsson at canonical.com>
---
src/modules/alsa/mixer/paths/analog-output-lineout.conf | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/src/modules/alsa/mixer/paths/analog-output-lineout.conf b/src/modules/alsa/mixer/paths/analog-output-lineout.conf
index a110c26..16752a3 100644
--- a/src/modules/alsa/mixer/paths/analog-output-lineout.conf
+++ b/src/modules/alsa/mixer/paths/analog-output-lineout.conf
@@ -102,23 +102,22 @@ volume = off
switch = off
required-any = any
-; This profile path is intended to control the default output, not the
-; headphones. But it should not hurt if we leave the headphone jack
-; enabled nonetheless.
+; This profile path is intended to control line out, let's mute headphones
+; else there will be a spike when plugging in headphones
[Element Headphone]
-switch = mute
-volume = zero
+switch = off
+volume = off
[Element Headphone2]
-switch = mute
-volume = zero
+switch = off
+volume = off
[Element Speaker]
-switch = mute
+switch = off
volume = off
[Element Desktop Speaker]
-switch = mute
+switch = off
volume = off
[Element Front]
--
1.9.1
More information about the pulseaudio-discuss
mailing list