diff mbox

[2/2] alsactl/init: Add "Line Out" to list of outputs to initialize

Message ID 1421077718-4147-2-git-send-email-david.henningsson@canonical.com (mailing list archive)
State New, archived
Headers show

Commit Message

David Henningsson Jan. 12, 2015, 3:48 p.m. UTC
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
---
 alsactl/init/default | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff mbox

Patch

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=""