aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAndrew Ford <aford@opensource.cirrus.com>2019-01-15 10:50:59 +0000
committerAndrew Ford <aford@opensource.cirrus.com>2019-01-15 10:54:29 +0000
commit6d758cee0d326e797d9e128ea308402f4cf69ef1 (patch)
treef845fd4b36a7e145ad6f98cbcc1c5c1dcda16724 /utils
parent7226172357be3bf7ff591499776cf60c90143cad (diff)
tinymix: fix use of -D with set command
Signed-off-by: Andrew Ford <aford@opensource.cirrus.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/tinymix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/tinymix.c b/utils/tinymix.c
index ff019cd..abab78d 100644
--- a/utils/tinymix.c
+++ b/utils/tinymix.c
@@ -129,7 +129,7 @@ int main(int argc, char **argv)
mixer_close(mixer);
return EXIT_FAILURE;
}
- tinymix_set_value(mixer, argv[optind + 1], &argv[optind + 2], argc - 3);
+ tinymix_set_value(mixer, argv[optind + 1], &argv[optind + 2], argc - optind - 2);
} else if (strcmp(cmd, "controls") == 0) {
tinymix_list_controls(mixer, 0);
} else if (strcmp(cmd, "contents") == 0) {