]> git.alsa-project.org Git - alsa-utils.git/commit
speaker-test: fix option ordering
authorKen Benoit <kbenoit@redhat.com>
Thu, 17 Sep 2015 19:06:38 +0000 (15:06 -0400)
committerJaroslav Kysela <perex@perex.cz>
Thu, 17 Sep 2015 19:49:09 +0000 (21:49 +0200)
commit4482cc7cfe97fd69b38687816a6450b0fcc9ba59
treedf9adfd87fdf553902ddd2c079b0410cfcb76e3a
parent0e864e1a3aaf79d451556064eb09052530a0a085
speaker-test: fix option ordering

The -c and -s options needed to be provided in a specific order for the -s option to work correctly.

This pulls the speaker option check outside of the option parsing so that all the options have been parsed before checking to see if the parameter to -s is correct.

Signed-off-by: Ken Benoit <kbenoit@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
speaker-test/speaker-test.c