Commit 1b28f418 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: emu10k1: Use dev_warn()

Replace an open-coded printk warning with dev_warn() for code
simplicity and consistency.
Reviewed-by: default avatarJaroslav Kysela <perex@perex.cz>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20240807133452.9424-42-tiwai@suse.de
parent 594508d5
...@@ -40,8 +40,9 @@ snd_emu10k1_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp, ...@@ -40,8 +40,9 @@ snd_emu10k1_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp,
if (sp->v.mode_flags & (SNDRV_SFNT_SAMPLE_BIDIR_LOOP | SNDRV_SFNT_SAMPLE_REVERSE_LOOP)) { if (sp->v.mode_flags & (SNDRV_SFNT_SAMPLE_BIDIR_LOOP | SNDRV_SFNT_SAMPLE_REVERSE_LOOP)) {
/* should instead return -ENOTSUPP; but compatibility */ /* should instead return -ENOTSUPP; but compatibility */
printk(KERN_WARNING "Emu10k1 wavetable patch %d with unsupported loop feature\n", dev_warn(emu->card->dev,
sp->v.sample); "Emu10k1 wavetable patch %d with unsupported loop feature\n",
sp->v.sample);
} }
if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS) { if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment