audio: codec: shell: adopt SHELL_HELP
have audio codec shell commands use the new SHELL_HELP macro Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
3096ea0216
commit
660d2b3e7a
1 changed files with 8 additions and 8 deletions
|
@ -9,20 +9,20 @@
|
|||
#include <zephyr/audio/codec.h>
|
||||
|
||||
#define CODEC_START_HELP \
|
||||
"Start output audio playback. Syntax:\n" \
|
||||
"<device>"
|
||||
SHELL_HELP("Start output audio playback", \
|
||||
"<device>")
|
||||
|
||||
#define CODEC_STOP_HELP \
|
||||
"Stop output audio playback. Syntax:\n" \
|
||||
"<device>"
|
||||
SHELL_HELP("Stop output audio playback", \
|
||||
"<device>")
|
||||
|
||||
#define CODEC_SET_PROP_HELP \
|
||||
"Set a codec property. Syntax:\n" \
|
||||
"<device> <property> <channel> <value>"
|
||||
SHELL_HELP("Set a codec property", \
|
||||
"<device> <property> <channel> <value>")
|
||||
|
||||
#define CODEC_APPLY_PROP_HELP \
|
||||
"Apply any cached properties. Syntax:\n" \
|
||||
"<device>"
|
||||
SHELL_HELP("Apply any cached properties", \
|
||||
"<device>")
|
||||
|
||||
static const char *const codec_property_name[] = {
|
||||
[AUDIO_PROPERTY_OUTPUT_VOLUME] = "volume",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue