mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 08:06:30 +01:00
amixer: Make "dB" case-insensitive in set commands
We don't have to be necessarily too strict about case-sensitivity of "dB" suffix used in set commands. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
8f361d83cf
commit
45a334e71c
1 changed files with 1 additions and 1 deletions
|
@ -346,7 +346,7 @@ static int set_volume_simple(snd_mixer_elem_t *elem,
|
|||
if (*p == '%') {
|
||||
percent = 1;
|
||||
p++;
|
||||
} else if (p[0] == 'd' && p[1] == 'B') {
|
||||
} else if (toupper(p[0]) == 'D' && toupper(p[1]) == 'B') {
|
||||
vol_type = VOL_DB;
|
||||
p += 2;
|
||||
scale = 100;
|
||||
|
|
Loading…
Reference in a new issue