mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-23 10:06:32 +01:00
Alsa-utils: Fix typo causing some volumes not to be initialized
When I was reading the source code, I stumbled over this typo causing Center, LFE, and Surround speakers not to be initialized. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
9fa7cd2176
commit
7d33af86c8
1 changed files with 3 additions and 3 deletions
|
@ -124,7 +124,7 @@ CTL{name}="Front Speaker Playback Switch",CTL{do_search}=="1", \
|
||||||
CTL{values}="on"
|
CTL{values}="on"
|
||||||
|
|
||||||
CTL{reset}="mixer"
|
CTL{reset}="mixer"
|
||||||
CTL{name}="Front Speaker Playback Volume",PROGRAM!="__ctl_search",GOTO=""
|
CTL{name}="Surround Speaker Playback Volume",PROGRAM!="__ctl_search",GOTO=""
|
||||||
# if master volume control is present, turn speaker volume to max
|
# if master volume control is present, turn speaker volume to max
|
||||||
ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
|
ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
|
||||||
ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
|
ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
|
||||||
|
@ -134,7 +134,7 @@ CTL{name}="Surround Speaker Playback Switch",CTL{do_search}=="1", \
|
||||||
CTL{values}="on"
|
CTL{values}="on"
|
||||||
|
|
||||||
CTL{reset}="mixer"
|
CTL{reset}="mixer"
|
||||||
CTL{name}="Front Speaker Playback Volume",PROGRAM!="__ctl_search",GOTO=""
|
CTL{name}="Center Speaker Playback Volume",PROGRAM!="__ctl_search",GOTO=""
|
||||||
# if master volume control is present, turn speaker volume to max
|
# if master volume control is present, turn speaker volume to max
|
||||||
ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
|
ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
|
||||||
ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
|
ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
|
||||||
|
@ -144,7 +144,7 @@ CTL{name}="Center Speaker Playback Switch",CTL{do_search}=="1", \
|
||||||
CTL{values}="on"
|
CTL{values}="on"
|
||||||
|
|
||||||
CTL{reset}="mixer"
|
CTL{reset}="mixer"
|
||||||
CTL{name}="Front Speaker Playback Volume",PROGRAM!="__ctl_search",GOTO=""
|
CTL{name}="LFE Speaker Playback Volume",PROGRAM!="__ctl_search",GOTO=""
|
||||||
# if master volume control is present, turn speaker volume to max
|
# if master volume control is present, turn speaker volume to max
|
||||||
ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
|
ENV{has_pmaster_vol}=="true",CTL{write}=="0dB",GOTO=""
|
||||||
ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
|
ENV{has_pmaster_vol}=="true",CTL{write}=="100%",GOTO=""
|
||||||
|
|
Loading…
Reference in a new issue