diff options
author | Jaroslav Kysela <perex@perex.cz> | 2022-05-09 09:34:22 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2022-05-10 09:08:26 +0200 |
commit | bbc74a61ac7c35e506c3d7f76ecf943cb55736a6 (patch) | |
tree | 36a1a4d187604daba9e4cbac2854746d8e9cda9b /alsactl/alsactl.c | |
parent | 904bc1dfd4a97002e1bb05058cfb15a7f486d493 (diff) | |
download | alsa-utils-bbc74a61ac7c35e506c3d7f76ecf943cb55736a6.tar.gz |
alsactl: implement 'info' command
It may be useful to collect the basic sound card information.
The output is in the YAML structured syntax (human and machine readable).
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'alsactl/alsactl.c')
-rw-r--r-- | alsactl/alsactl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/alsactl/alsactl.c b/alsactl/alsactl.c index 9719b83..ae73715 100644 --- a/alsactl/alsactl.c +++ b/alsactl/alsactl.c @@ -119,6 +119,7 @@ static struct arg args[] = { { CARDCMD, "rdaemon", "like daemon but do the state restore at first" }, { KILLCMD, "kill", "notify daemon to quit, rescan or save_and_quit" }, { CARDCMD, "monitor", "monitor control events" }, +{ CARDCMD, "info", "general information" }, { CARDCMD, "clean", "clean application controls" }, { EMPCMD, "dump-state", "dump the state (for all cards)" }, { EMPCMD, "dump-cfg", "dump the configuration (expanded, for all cards)" }, @@ -465,6 +466,8 @@ int main(int argc, char *argv[]) res = state_daemon_kill(pidfile, cardname); } else if (!strcmp(cmd, "monitor")) { res = monitor(cardname); + } else if (!strcmp(cmd, "info")) { + res = general_info(cardname); } else if (!strcmp(cmd, "clean")) { res = clean(cardname, extra_args); } else if (!strcmp(cmd, "dump-state")) { |