diff options
author | Takashi Iwai <tiwai@suse.de> | 2004-12-20 13:17:47 +0000 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2004-12-20 13:17:47 +0000 |
commit | 0b9e7577a3cfec8a937702747620929bbbb0135b (patch) | |
tree | 03b4eeaba37f52cc1886474642ead03bf6e106f7 /alsamixer | |
parent | 2c82a989689ca12d7643c101e52ed6f56f2cc534 (diff) |
Add -V option
Add -V option to specify the default view mode.
Diffstat (limited to 'alsamixer')
-rw-r--r-- | alsamixer/alsamixer.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/alsamixer/alsamixer.c b/alsamixer/alsamixer.c index c23651b..17adc10 100644 --- a/alsamixer/alsamixer.c +++ b/alsamixer/alsamixer.c @@ -2061,7 +2061,7 @@ main (int argc, */ do { - opt = getopt (argc, argv, "c:D:shg"); + opt = getopt (argc, argv, "c:D:shgV:"); switch (opt) { case '?': @@ -2089,6 +2089,14 @@ main (int argc, case 's': mixer_minimize = 1; break; + case 'V': + if (*optarg == 'p' || *optarg == 'P') + mixer_view = VIEW_PLAYBACK; + else if (*optarg == 'c' || *optarg == 'C') + mixer_view = VIEW_CAPTURE; + else + mixer_view = VIEW_CHANNELS; + break; } } while (opt > 0); |