Fix nxstyle warning
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
837b405624
commit
68c8a0f708
@ -58,7 +58,7 @@
|
|||||||
#define NXPLAYER_VER "1.05"
|
#define NXPLAYER_VER "1.05"
|
||||||
|
|
||||||
#ifdef CONFIG_NXPLAYER_INCLUDE_HELP
|
#ifdef CONFIG_NXPLAYER_INCLUDE_HELP
|
||||||
# define NXPLAYER_HELP_TEXT(x) #x
|
# define NXPLAYER_HELP_TEXT(x) x
|
||||||
#else
|
#else
|
||||||
# define NXPLAYER_HELP_TEXT(x)
|
# define NXPLAYER_HELP_TEXT(x)
|
||||||
#endif
|
#endif
|
||||||
@ -132,7 +132,7 @@ static struct mp_cmd_s g_nxplayer_cmds[] =
|
|||||||
"balance",
|
"balance",
|
||||||
"d%",
|
"d%",
|
||||||
nxplayer_cmd_balance,
|
nxplayer_cmd_balance,
|
||||||
NXPLAYER_HELP_TEXT(Set balance percentage (< 50% means more left))
|
NXPLAYER_HELP_TEXT("Set balance percentage (< 50% means more left)")
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
@ -141,7 +141,7 @@ static struct mp_cmd_s g_nxplayer_cmds[] =
|
|||||||
"bass",
|
"bass",
|
||||||
"d%",
|
"d%",
|
||||||
nxplayer_cmd_bass,
|
nxplayer_cmd_bass,
|
||||||
NXPLAYER_HELP_TEXT(Set bass level percentage)
|
NXPLAYER_HELP_TEXT("Set bass level percentage")
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_NXPLAYER_INCLUDE_PREFERRED_DEVICE
|
#ifdef CONFIG_NXPLAYER_INCLUDE_PREFERRED_DEVICE
|
||||||
@ -149,7 +149,7 @@ static struct mp_cmd_s g_nxplayer_cmds[] =
|
|||||||
"device",
|
"device",
|
||||||
"devfile",
|
"devfile",
|
||||||
nxplayer_cmd_device,
|
nxplayer_cmd_device,
|
||||||
NXPLAYER_HELP_TEXT(Specify a preferred audio device)
|
NXPLAYER_HELP_TEXT("Specify a preferred audio device")
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_NXPLAYER_INCLUDE_HELP
|
#ifdef CONFIG_NXPLAYER_INCLUDE_HELP
|
||||||
@ -157,13 +157,13 @@ static struct mp_cmd_s g_nxplayer_cmds[] =
|
|||||||
"h",
|
"h",
|
||||||
"",
|
"",
|
||||||
nxplayer_cmd_help,
|
nxplayer_cmd_help,
|
||||||
NXPLAYER_HELP_TEXT(Display help for commands)
|
NXPLAYER_HELP_TEXT("Display help for commands")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"help",
|
"help",
|
||||||
"",
|
"",
|
||||||
nxplayer_cmd_help,
|
nxplayer_cmd_help,
|
||||||
NXPLAYER_HELP_TEXT(Display help for commands)
|
NXPLAYER_HELP_TEXT("Display help for commands")
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_NXPLAYER_INCLUDE_MEDIADIR
|
#ifdef CONFIG_NXPLAYER_INCLUDE_MEDIADIR
|
||||||
@ -171,27 +171,27 @@ static struct mp_cmd_s g_nxplayer_cmds[] =
|
|||||||
"mediadir",
|
"mediadir",
|
||||||
"path",
|
"path",
|
||||||
nxplayer_cmd_mediadir,
|
nxplayer_cmd_mediadir,
|
||||||
NXPLAYER_HELP_TEXT(Change the media directory)
|
NXPLAYER_HELP_TEXT("Change the media directory")
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
"play",
|
"play",
|
||||||
"filename",
|
"filename",
|
||||||
nxplayer_cmd_play,
|
nxplayer_cmd_play,
|
||||||
NXPLAYER_HELP_TEXT(Play a media file)
|
NXPLAYER_HELP_TEXT("Play a media file")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"playraw",
|
"playraw",
|
||||||
"filename",
|
"filename",
|
||||||
nxplayer_cmd_playraw,
|
nxplayer_cmd_playraw,
|
||||||
NXPLAYER_HELP_TEXT(Play a raw data file)
|
NXPLAYER_HELP_TEXT("Play a raw data file")
|
||||||
},
|
},
|
||||||
#ifndef CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME
|
#ifndef CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME
|
||||||
{
|
{
|
||||||
"pause",
|
"pause",
|
||||||
"",
|
"",
|
||||||
nxplayer_cmd_pause,
|
nxplayer_cmd_pause,
|
||||||
NXPLAYER_HELP_TEXT(Pause playback)
|
NXPLAYER_HELP_TEXT("Pause playback")
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_NXPLAYER_INCLUDE_SYSTEM_RESET
|
#ifdef CONFIG_NXPLAYER_INCLUDE_SYSTEM_RESET
|
||||||
@ -199,7 +199,7 @@ static struct mp_cmd_s g_nxplayer_cmds[] =
|
|||||||
"reset",
|
"reset",
|
||||||
"",
|
"",
|
||||||
nxplayer_cmd_reset,
|
nxplayer_cmd_reset,
|
||||||
NXPLAYER_HELP_TEXT(Perform a HW reset)
|
NXPLAYER_HELP_TEXT("Perform a HW reset")
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
#ifndef CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME
|
#ifndef CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME
|
||||||
@ -207,7 +207,7 @@ static struct mp_cmd_s g_nxplayer_cmds[] =
|
|||||||
"resume",
|
"resume",
|
||||||
"",
|
"",
|
||||||
nxplayer_cmd_resume,
|
nxplayer_cmd_resume,
|
||||||
NXPLAYER_HELP_TEXT(Resume playback)
|
NXPLAYER_HELP_TEXT("Resume playback")
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
#ifndef CONFIG_AUDIO_EXCLUDE_STOP
|
#ifndef CONFIG_AUDIO_EXCLUDE_STOP
|
||||||
@ -215,41 +215,41 @@ static struct mp_cmd_s g_nxplayer_cmds[] =
|
|||||||
"stop",
|
"stop",
|
||||||
"",
|
"",
|
||||||
nxplayer_cmd_stop,
|
nxplayer_cmd_stop,
|
||||||
NXPLAYER_HELP_TEXT(Stop playback)
|
NXPLAYER_HELP_TEXT("Stop playback")
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
"tone",
|
"tone",
|
||||||
"freq secs",
|
"freq secs",
|
||||||
NULL,
|
NULL,
|
||||||
NXPLAYER_HELP_TEXT(Produce a pure tone)
|
NXPLAYER_HELP_TEXT("Produce a pure tone")
|
||||||
},
|
},
|
||||||
#ifndef CONFIG_AUDIO_EXCLUDE_TONE
|
#ifndef CONFIG_AUDIO_EXCLUDE_TONE
|
||||||
{
|
{
|
||||||
"treble",
|
"treble",
|
||||||
"d%",
|
"d%",
|
||||||
nxplayer_cmd_treble,
|
nxplayer_cmd_treble,
|
||||||
NXPLAYER_HELP_TEXT(Set treble level percentage)
|
NXPLAYER_HELP_TEXT("Set treble level percentage")
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
"q",
|
"q",
|
||||||
"",
|
"",
|
||||||
nxplayer_cmd_quit,
|
nxplayer_cmd_quit,
|
||||||
NXPLAYER_HELP_TEXT(Exit NxPlayer)
|
NXPLAYER_HELP_TEXT("Exit NxPlayer")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"quit",
|
"quit",
|
||||||
"",
|
"",
|
||||||
nxplayer_cmd_quit,
|
nxplayer_cmd_quit,
|
||||||
NXPLAYER_HELP_TEXT(Exit NxPlayer)
|
NXPLAYER_HELP_TEXT("Exit NxPlayer")
|
||||||
},
|
},
|
||||||
#ifndef CONFIG_AUDIO_EXCLUDE_VOLUME
|
#ifndef CONFIG_AUDIO_EXCLUDE_VOLUME
|
||||||
{
|
{
|
||||||
"volume",
|
"volume",
|
||||||
"d%",
|
"d%",
|
||||||
nxplayer_cmd_volume,
|
nxplayer_cmd_volume,
|
||||||
NXPLAYER_HELP_TEXT(Set volume to level specified)
|
NXPLAYER_HELP_TEXT("Set volume to level specified")
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
#define NXRECORDER_VER "1.00"
|
#define NXRECORDER_VER "1.00"
|
||||||
|
|
||||||
#ifdef CONFIG_NXRECORDER_INCLUDE_HELP
|
#ifdef CONFIG_NXRECORDER_INCLUDE_HELP
|
||||||
# define NXRECORDER_HELP_TEXT(x) #x
|
# define NXRECORDER_HELP_TEXT(x) x
|
||||||
#else
|
#else
|
||||||
# define NXRECORDER_HELP_TEXT(x)
|
# define NXRECORDER_HELP_TEXT(x)
|
||||||
#endif
|
#endif
|
||||||
@ -98,40 +98,40 @@ static const struct mp_cmd_s g_nxrecorder_cmds[] =
|
|||||||
"device",
|
"device",
|
||||||
"devfile",
|
"devfile",
|
||||||
nxrecorder_cmd_device,
|
nxrecorder_cmd_device,
|
||||||
NXRECORDER_HELP_TEXT(Specify a preferred audio device)
|
NXRECORDER_HELP_TEXT("Specify a preferred audio device")
|
||||||
},
|
},
|
||||||
#ifdef CONFIG_NXRECORDER_INCLUDE_HELP
|
#ifdef CONFIG_NXRECORDER_INCLUDE_HELP
|
||||||
{
|
{
|
||||||
"h",
|
"h",
|
||||||
"",
|
"",
|
||||||
nxrecorder_cmd_help,
|
nxrecorder_cmd_help,
|
||||||
NXRECORDER_HELP_TEXT(Display help for commands)
|
NXRECORDER_HELP_TEXT("Display help for commands")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"help",
|
"help",
|
||||||
"",
|
"",
|
||||||
nxrecorder_cmd_help,
|
nxrecorder_cmd_help,
|
||||||
NXRECORDER_HELP_TEXT(Display help for commands)
|
NXRECORDER_HELP_TEXT("Display help for commands")
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
"recordraw",
|
"recordraw",
|
||||||
"filename",
|
"filename",
|
||||||
nxrecorder_cmd_recordraw,
|
nxrecorder_cmd_recordraw,
|
||||||
NXRECORDER_HELP_TEXT(Record a pcm raw file)
|
NXRECORDER_HELP_TEXT("Record a pcm raw file")
|
||||||
},
|
},
|
||||||
#ifndef CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME
|
#ifndef CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME
|
||||||
{
|
{
|
||||||
"pause",
|
"pause",
|
||||||
"",
|
"",
|
||||||
nxrecorder_cmd_pause,
|
nxrecorder_cmd_pause,
|
||||||
NXRECORDER_HELP_TEXT(Pause record)
|
NXRECORDER_HELP_TEXT("Pause record")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resume",
|
"resume",
|
||||||
"",
|
"",
|
||||||
nxrecorder_cmd_resume,
|
nxrecorder_cmd_resume,
|
||||||
NXRECORDER_HELP_TEXT(Resume record)
|
NXRECORDER_HELP_TEXT("Resume record")
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
#ifndef CONFIG_AUDIO_EXCLUDE_STOP
|
#ifndef CONFIG_AUDIO_EXCLUDE_STOP
|
||||||
@ -139,20 +139,20 @@ static const struct mp_cmd_s g_nxrecorder_cmds[] =
|
|||||||
"stop",
|
"stop",
|
||||||
"",
|
"",
|
||||||
nxrecorder_cmd_stop,
|
nxrecorder_cmd_stop,
|
||||||
NXRECORDER_HELP_TEXT(Stop record)
|
NXRECORDER_HELP_TEXT("Stop record")
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
"q",
|
"q",
|
||||||
"",
|
"",
|
||||||
nxrecorder_cmd_quit,
|
nxrecorder_cmd_quit,
|
||||||
NXRECORDER_HELP_TEXT(Exit NxRecorder)
|
NXRECORDER_HELP_TEXT("Exit NxRecorder")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"quit",
|
"quit",
|
||||||
"",
|
"",
|
||||||
nxrecorder_cmd_quit,
|
nxrecorder_cmd_quit,
|
||||||
NXRECORDER_HELP_TEXT(Exit NxRecorder)
|
NXRECORDER_HELP_TEXT("Exit NxRecorder")
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user