Skip to content

Commit 660d2b3

Browse files
committed
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>
1 parent 3096ea0 commit 660d2b3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/audio/codec_shell.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@
99
#include <zephyr/audio/codec.h>
1010

1111
#define CODEC_START_HELP \
12-
"Start output audio playback. Syntax:\n" \
13-
"<device>"
12+
SHELL_HELP("Start output audio playback", \
13+
"<device>")
1414

1515
#define CODEC_STOP_HELP \
16-
"Stop output audio playback. Syntax:\n" \
17-
"<device>"
16+
SHELL_HELP("Stop output audio playback", \
17+
"<device>")
1818

1919
#define CODEC_SET_PROP_HELP \
20-
"Set a codec property. Syntax:\n" \
21-
"<device> <property> <channel> <value>"
20+
SHELL_HELP("Set a codec property", \
21+
"<device> <property> <channel> <value>")
2222

2323
#define CODEC_APPLY_PROP_HELP \
24-
"Apply any cached properties. Syntax:\n" \
25-
"<device>"
24+
SHELL_HELP("Apply any cached properties", \
25+
"<device>")
2626

2727
static const char *const codec_property_name[] = {
2828
[AUDIO_PROPERTY_OUTPUT_VOLUME] = "volume",

0 commit comments

Comments
 (0)