aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/pcm_timer.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2014-02-04 18:19:48 +0100
committerTakashi Iwai <tiwai@suse.de>2014-02-14 08:14:15 +0100
commit09e56df8b37f5e751614a0d140b8bf8250812912 (patch)
treeabc4a4b45bc301cf51e996198b2d1b42c8160db9 /sound/core/pcm_timer.c
parentALSA: control: Use standard printk helpers (diff)
downloadlinux-dev-09e56df8b37f5e751614a0d140b8bf8250812912.tar.xz
linux-dev-09e56df8b37f5e751614a0d140b8bf8250812912.zip
ALSA: pcm: Use standard printk helpers
Use dev_err() & co as much as possible. If not available (no device assigned at the calling point), use pr_xxx() helpers instead. For simplicity, introduce new helpers for pcm stream, pcm_err(), etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/pcm_timer.c')
-rw-r--r--sound/core/pcm_timer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/core/pcm_timer.c b/sound/core/pcm_timer.c
index b01d9481d632..20ecd8f18080 100644
--- a/sound/core/pcm_timer.c
+++ b/sound/core/pcm_timer.c
@@ -53,7 +53,9 @@ void snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream)
post *= 2;
}
if (rate == 0) {
- snd_printk(KERN_ERR "pcm timer resolution out of range (rate = %u, period_size = %lu)\n", runtime->rate, runtime->period_size);
+ pcm_err(substream->pcm,
+ "pcm timer resolution out of range (rate = %u, period_size = %lu)\n",
+ runtime->rate, runtime->period_size);
runtime->timer_resolution = -1;
return;
}