X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=sound%2Fcore%2Fpcm_timer.c;h=20ecd8f180808cf62b0b129902e3f89f7a59e5ff;hb=2bf7955152a0544342fcaed28930748cc68392ae;hp=b01d9481d632c4245d3403a445e6e641b9b2e2aa;hpb=b0f969009f647cd473c5e559aeec9c4229d12f87;p=firefly-linux-kernel-4.4.55.git 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; }