summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2014-11-23 09:40:07 +0100
committerTakashi Iwai <tiwai@suse.de>2014-11-23 09:45:44 +0100
commit45a334e71ca9b4402fb731a934f7455cec5b0121 (patch)
tree35fd849e09a3bee5070efa61f4e71f33035e6129
parent8f361d83cfcb39887f5fc591633e68d9448e3425 (diff)
downloadalsa-utils-45a334e71ca9b4402fb731a934f7455cec5b0121.tar.gz
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>
-rw-r--r--amixer/amixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/amixer/amixer.c b/amixer/amixer.c
index cf82892..6a2fdb9 100644
--- a/amixer/amixer.c
+++ b/amixer/amixer.c
@@ -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;