projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
594508d
)
ALSA: emu10k1: Use dev_warn()
author
Takashi Iwai
<tiwai@suse.de>
Wed, 7 Aug 2024 13:34:31 +0000
(15:34 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 8 Aug 2024 05:49:46 +0000
(07:49 +0200)
Replace an open-coded printk warning with dev_warn() for code
simplicity and consistency.
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link:
https://patch.msgid.link/20240807133452.9424-42-tiwai@suse.de
sound/pci/emu10k1/emu10k1_patch.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/emu10k1/emu10k1_patch.c
b/sound/pci/emu10k1/emu10k1_patch.c
index dbfa89435ac2a4363f19b543302e859f4d5572a1..806b4f95cad1600a9990d6f1f8bec5df9509eb48 100644
(file)
--- a/
sound/pci/emu10k1/emu10k1_patch.c
+++ b/
sound/pci/emu10k1/emu10k1_patch.c
@@
-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)) {
/* should instead return -ENOTSUPP; but compatibility */
- printk(KERN_WARNING "Emu10k1 wavetable patch %d with unsupported loop feature\n",
- sp->v.sample);
+ dev_warn(emu->card->dev,
+ "Emu10k1 wavetable patch %d with unsupported loop feature\n",
+ sp->v.sample);
}
if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS) {