diff options
author | Simon Wilson <simonwilson@google.com> | 2013-07-17 11:08:19 -0700 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2013-07-17 11:08:59 -0700 |
commit | 782bfda5e796cb46d0e7be0dc882ff686d5ad2a2 (patch) | |
tree | d25691ad0c129a023bc94620eb7e9aada720b1fd | |
parent | 4f4967888f65d3f73e40052d2e9e1fb02f85eccc (diff) |
tinymix: only print mixer name for full mixer dump
-rw-r--r-- | tinymix.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -61,16 +61,17 @@ int main(int argc, char **argv) return EXIT_FAILURE; } - printf("Mixer name: '%s'\n", mixer_get_name(mixer)); - if (argc == 1) + if (argc == 1) { + printf("Mixer name: '%s'\n", mixer_get_name(mixer)); tinymix_list_controls(mixer); - else if (argc == 2) + } else if (argc == 2) { tinymix_detail_control(mixer, argv[1], 1); - else if (argc >= 3) + } else if (argc >= 3) { tinymix_set_value(mixer, argv[1], &argv[2], argc - 2); - else + } else { printf("Usage: tinymix [-D card] [control id] [value to set]\n"); + } mixer_close(mixer); |