[alsa-devel] [PATCH 2/2] alsactl/init: Add "Line Out" to list of outputs to initialize
David Henningsson
david.henningsson at canonical.com
Mon Jan 12 16:48:38 CET 2015
Signed-off-by: David Henningsson <david.henningsson at canonical.com>
---
alsactl/init/default | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/alsactl/init/default b/alsactl/init/default
index 64f933f..1c84f3e 100644
--- a/alsactl/init/default
+++ b/alsactl/init/default
@@ -43,6 +43,16 @@ CTL{name}="Master Digital Playback Switch",CTL{do_search}=="1", \
CTL{values}="on"
CTL{reset}="mixer"
+CTL{name}="Line Out Playback Volume",PROGRAM!="__ctl_search",GOTO=""
+# if master volume control is present, turn line out volume to max
+ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
+ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
+CTL{write}!="$env{pvolume}",CTL{values}="$env{ppercent}"
+LABEL=""
+CTL{name}="Line Out Playback Switch",CTL{do_search}=="1", \
+ CTL{values}="on"
+
+CTL{reset}="mixer"
CTL{name}="Front Playback Volume",PROGRAM!="__ctl_search",GOTO=""
# if master volume control is present, turn front volume to max
ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
--
1.9.1
More information about the Alsa-devel
mailing list