]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Fixed compilation
authorJaroslav Kysela <perex@perex.cz>
Thu, 27 Sep 2001 19:14:26 +0000 (19:14 +0000)
committerJaroslav Kysela <perex@perex.cz>
Thu, 27 Sep 2001 19:14:26 +0000 (19:14 +0000)
amixer/amixer.c

index 08a60871c474499291f7035a65457d9033773adf..8ed7d48e5196fd922ed39983cfa2c7a63effebc6 100644 (file)
@@ -948,8 +948,8 @@ static int cset(int argc, char *argv[], int roflag)
                                        tmp = 1;
                                        ptr += 3;
                                } else if (!strncasecmp(ptr, "toggle", 6)) {
-                                       snd_ctl_elem_value_get_boolean(control, idx, &tmp);
-                                       tmp = tmp ? 0 : 1;
+                                       tmp = snd_ctl_elem_value_get_boolean(control, idx);
+                                       tmp = tmp > 0 ? 0 : 1;
                                        ptr += 6;
                                } else if (atoi(ptr)) {
                                        tmp = 1;