mirror of
https://github.com/alsa-project/alsa-utils
synced 2025-01-03 09:59:43 +01:00
Add -V option
Add -V option to specify the default view mode.
This commit is contained in:
parent
2c82a98968
commit
0b9e7577a3
1 changed files with 9 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue