diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-02-04 17:19:48 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-02-14 07:14:15 (GMT) |
commit | 09e56df8b37f5e751614a0d140b8bf8250812912 (patch) | |
tree | abc4a4b45bc301cf51e996198b2d1b42c8160db9 /sound/core/pcm_timer.c | |
parent | bb00945749c544670d30d9eaee2494da50af6b6e (diff) | |
download | linux-09e56df8b37f5e751614a0d140b8bf8250812912.tar.xz |
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.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/core/pcm_timer.c b/sound/core/pcm_timer.c index b01d948..20ecd8f 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; } |