From 68473a41c6fa68f3d8331ef995b25c2c84a0ef92 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 4 Oct 2021 10:40:07 +0200 Subject: [PATCH] amixer: print help and add doc for 'sevents' and 'events' commands Signed-off-by: Jaroslav Kysela --- amixer/amixer.1 | 10 ++++++++++ amixer/amixer.c | 3 +++ 2 files changed, 13 insertions(+) diff --git a/amixer/amixer.1 b/amixer/amixer.1 index 0bac82b..8860ae1 100644 --- a/amixer/amixer.1 +++ b/amixer/amixer.1 @@ -80,6 +80,16 @@ of control. Shows the card control contents. The identifier has same syntax as for the \fIcset\fP command. +.SH ADVANCED COMMANDS + +.TP +\fIsevents\fP +Shows the events for the simple mixer controls. + +.TP +\fIevents\fP +Shows the events for the mixer controls. + .SH OPTIONS .TP diff --git a/amixer/amixer.c b/amixer/amixer.c index f9cbb89..bcdb188 100644 --- a/amixer/amixer.c +++ b/amixer/amixer.c @@ -81,6 +81,9 @@ static int help(void) printf(" contents show contents of all controls for given card\n"); printf(" cset cID P set control contents for one control\n"); printf(" cget cID get control contents for one control\n"); + printf("\nAvailable advanced commands:\n"); + printf(" sevents show the mixer events for simple controls\n"); + printf(" events show the mixer events for simple controls\n"); return 0; }