summaryrefslogtreecommitdiffstats
path: root/sound/drivers/pcsp/pcsp_lib.c
diff options
context:
space:
mode:
authorStas Sergeev <stsp@aknet.ru>2008-05-18 18:30:03 +0200
committerTakashi Iwai <tiwai@suse.de>2008-05-19 12:06:44 +0200
commit42ece6c1f8162cd782b44dc4863679e888531df5 (patch)
tree4eeb1e9a2d6c7f406a57056b4b67c578a856e22c /sound/drivers/pcsp/pcsp_lib.c
parentsnd-pcsp: depend on CONFIG_EXPERIMENTAL (diff)
downloadlinux-42ece6c1f8162cd782b44dc4863679e888531df5.tar.xz
linux-42ece6c1f8162cd782b44dc4863679e888531df5.zip
snd-pcsp: silent misleading warning
It appears that alsa allows a sound buffer with size not evenly devided by the period size. This triggers a warning in snd-pcsp and floods the log. As a quick fix, the warning should be disabled. Signed-off-by: Stas Sergeev <stsp@aknet.ru> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers/pcsp/pcsp_lib.c')
-rw-r--r--sound/drivers/pcsp/pcsp_lib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/drivers/pcsp/pcsp_lib.c b/sound/drivers/pcsp/pcsp_lib.c
index 54253e9b4b02..7ad4a1534b2b 100644
--- a/sound/drivers/pcsp/pcsp_lib.c
+++ b/sound/drivers/pcsp/pcsp_lib.c
@@ -119,9 +119,11 @@ enum hrtimer_restart pcsp_do_timer(struct hrtimer *handle)
chip->playback_ptr += PCSP_INDEX_INC() * fmt_size;
periods_elapsed = chip->playback_ptr - chip->period_ptr;
if (periods_elapsed < 0) {
- printk(KERN_WARNING "PCSP: playback_ptr inconsistent "
+#if PCSP_DEBUG
+ printk(KERN_INFO "PCSP: buffer_bytes mod period_bytes != 0 ? "
"(%zi %zi %zi)\n",
chip->playback_ptr, period_bytes, buffer_bytes);
+#endif
periods_elapsed += buffer_bytes;
}
periods_elapsed /= period_bytes;