OSDN Git Service
(root)
/
android-x86
/
external-alsa-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a23db63
)
Added toggle for cset
author
Jaroslav Kysela
<perex@perex.cz>
Thu, 27 Sep 2001 17:07:07 +0000
(17:07 +0000)
committer
Jaroslav Kysela
<perex@perex.cz>
Thu, 27 Sep 2001 17:07:07 +0000
(17:07 +0000)
amixer/amixer.c
patch
|
blob
|
history
diff --git
a/amixer/amixer.c
b/amixer/amixer.c
index
214fce6
..
08a6087
100644
(file)
--- a/
amixer/amixer.c
+++ b/
amixer/amixer.c
@@
-947,6
+947,10
@@
static int cset(int argc, char *argv[], int roflag)
} else if (!strncasecmp(ptr, "yes", 3)) {
tmp = 1;
ptr += 3;
+ } else if (!strncasecmp(ptr, "toggle", 6)) {
+ snd_ctl_elem_value_get_boolean(control, idx, &tmp);
+ tmp = tmp ? 0 : 1;
+ ptr += 6;
} else if (atoi(ptr)) {
tmp = 1;
while (isdigit(*ptr))