mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 16:56:26 +00:00
ALSA: lx6464es: Cleanup the print API usages
Use pr_debug() instead of open-coded printk(). Also drop a few snd_printdd() calls that can be better done via ftrace. Reviewed-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20240807133452.9424-40-tiwai@suse.de
This commit is contained in:
parent
adf72c3648
commit
8455587c89
@ -231,14 +231,14 @@ static void lx_message_dump(struct lx_rmh *rmh)
|
||||
u8 idx = rmh->cmd_idx;
|
||||
int i;
|
||||
|
||||
snd_printk(LXRMH "command %s\n", dsp_commands[idx].dcOpName);
|
||||
pr_debug(LXRMH "command %s\n", dsp_commands[idx].dcOpName);
|
||||
|
||||
for (i = 0; i != rmh->cmd_len; ++i)
|
||||
snd_printk(LXRMH "\tcmd[%d] %08x\n", i, rmh->cmd[i]);
|
||||
pr_debug(LXRMH "\tcmd[%d] %08x\n", i, rmh->cmd[i]);
|
||||
|
||||
for (i = 0; i != rmh->stat_len; ++i)
|
||||
snd_printk(LXRMH "\tstat[%d]: %08x\n", i, rmh->stat[i]);
|
||||
snd_printk("\n");
|
||||
pr_debug(LXRMH "\tstat[%d]: %08x\n", i, rmh->stat[i]);
|
||||
pr_debug("\n");
|
||||
}
|
||||
#else
|
||||
static inline void lx_message_dump(struct lx_rmh *rmh)
|
||||
|
@ -129,21 +129,18 @@ int lx_stream_set_state(struct lx6464es *chip, u32 pipe,
|
||||
static inline int lx_stream_start(struct lx6464es *chip, u32 pipe,
|
||||
int is_capture)
|
||||
{
|
||||
snd_printdd("->lx_stream_start\n");
|
||||
return lx_stream_set_state(chip, pipe, is_capture, SSTATE_RUN);
|
||||
}
|
||||
|
||||
static inline int lx_stream_pause(struct lx6464es *chip, u32 pipe,
|
||||
int is_capture)
|
||||
{
|
||||
snd_printdd("->lx_stream_pause\n");
|
||||
return lx_stream_set_state(chip, pipe, is_capture, SSTATE_PAUSE);
|
||||
}
|
||||
|
||||
static inline int lx_stream_stop(struct lx6464es *chip, u32 pipe,
|
||||
int is_capture)
|
||||
{
|
||||
snd_printdd("->lx_stream_stop\n");
|
||||
return lx_stream_set_state(chip, pipe, is_capture, SSTATE_STOP);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user