forked from pool/alsa-utils
c1e4b30d69
- Backport upstream fixes: fix missing unlock for the error path in alsactl, more alsactl init entries, alsaucm build fix 0016-alsactl-add-missing-state_unlock-call.patch 0017-alsactl-init-Change-the-basic-rules-description.patch 0018-alsactl-init-Add-Line-Out-to-list-of-outputs-to-init.patch 0019-configure-allow-contitional-compilation-of-alsaucm.patch OBS-URL: https://build.opensuse.org/request/show/283732 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-utils?expand=0&rev=112
36 lines
1.3 KiB
Diff
36 lines
1.3 KiB
Diff
From e1745a69fecb191b3575e39b1ec731756381fb5c Mon Sep 17 00:00:00 2001
|
|
From: David Henningsson <david.henningsson@canonical.com>
|
|
Date: Mon, 12 Jan 2015 16:48:38 +0100
|
|
Subject: [PATCH] alsactl/init: Add "Line Out" to list of outputs to initialize
|
|
|
|
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
|
|
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
|
---
|
|
alsactl/init/default | 10 ++++++++++
|
|
1 file changed, 10 insertions(+)
|
|
|
|
diff --git a/alsactl/init/default b/alsactl/init/default
|
|
index 64f933f1f597..1c84f3e859e7 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=""
|
|
--
|
|
2.2.2
|
|
|