aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Sergeev <stsp@aknet.ru>2008-05-18 12:30:03 -0400
committerTakashi Iwai <tiwai@suse.de>2008-05-19 06:06:44 -0400
commit42ece6c1f8162cd782b44dc4863679e888531df5 (patch)
tree4eeb1e9a2d6c7f406a57056b4b67c578a856e22c
parent2bc536a235382f2a14fbbefd4fa9cd6089c9d0d0 (diff)
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>
-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)
119 chip->playback_ptr += PCSP_INDEX_INC() * fmt_size; 119 chip->playback_ptr += PCSP_INDEX_INC() * fmt_size;
120 periods_elapsed = chip->playback_ptr - chip->period_ptr; 120 periods_elapsed = chip->playback_ptr - chip->period_ptr;
121 if (periods_elapsed < 0) { 121 if (periods_elapsed < 0) {
122 printk(KERN_WARNING "PCSP: playback_ptr inconsistent " 122#if PCSP_DEBUG
123 printk(KERN_INFO "PCSP: buffer_bytes mod period_bytes != 0 ? "
123 "(%zi %zi %zi)\n", 124 "(%zi %zi %zi)\n",
124 chip->playback_ptr, period_bytes, buffer_bytes); 125 chip->playback_ptr, period_bytes, buffer_bytes);
126#endif
125 periods_elapsed += buffer_bytes; 127 periods_elapsed += buffer_bytes;
126 } 128 }
127 periods_elapsed /= period_bytes; 129 periods_elapsed /= period_bytes;