diff options
author | dvdli <70133153+dvdli@users.noreply.github.com> | 2023-09-05 10:20:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 10:20:40 +0800 |
commit | 2ca2386c1f41f3820e22281de570b19380682086 (patch) | |
tree | e88d363b4b9f5ea8eba982337f52496bb95298ff /utils | |
parent | c0fbed5e2ba87ee8cacc3cbca55488bcb85f327a (diff) | |
parent | 4516c73951d861e974f338540b026285148dc426 (diff) |
Merge pull request #244 from rohit-qc/chmap_mixer_support
Chmap mixer support
Diffstat (limited to 'utils')
-rw-r--r-- | utils/tinymix.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/utils/tinymix.c b/utils/tinymix.c index e272ade..f0e1d95 100644 --- a/utils/tinymix.c +++ b/utils/tinymix.c @@ -201,7 +201,7 @@ static void list_controls(struct mixer *mixer, int print_all) { struct mixer_ctl *ctl; const char *name, *type; - unsigned int num_ctls, num_values; + unsigned int num_ctls, num_values, device; unsigned int i; num_ctls = mixer_get_num_ctls(mixer); @@ -209,9 +209,9 @@ static void list_controls(struct mixer *mixer, int print_all) printf("Number of controls: %u\n", num_ctls); if (print_all) - printf("ctl\ttype\tnum\t%-40svalue\n", "name"); + printf("ctl\ttype\tnum\t%-40s\tdevice\tvalue\n", "name"); else - printf("ctl\ttype\tnum\t%-40s\n", "name"); + printf("ctl\ttype\tnum\t%-40s\tdevice\n", "name"); for (i = 0; i < num_ctls; i++) { ctl = mixer_get_ctl(mixer, i); @@ -219,7 +219,8 @@ static void list_controls(struct mixer *mixer, int print_all) name = mixer_ctl_get_name(ctl); type = mixer_ctl_get_type_string(ctl); num_values = mixer_ctl_get_num_values(ctl); - printf("%u\t%s\t%u\t%-40s", i, type, num_values, name); + device = mixer_ctl_get_dev_num(ctl); + printf("%u\t%s\t%u\t%-40s\t%u", i, type, num_values, name, device); if (print_all) print_control_values(ctl); printf("\n"); |