]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
snd-pcsp: silent misleading warning
authorStas Sergeev <stsp@aknet.ru>
Sun, 18 May 2008 16:30:03 +0000 (18:30 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 19 May 2008 10:06:44 +0000 (12:06 +0200)
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>
sound/drivers/pcsp/pcsp_lib.c

index 54253e9b4b02882cad3fd1a812363d5c47b98302..7ad4a1534b2bf7e7099c6442950f7a20a58f99dd 100644 (file)
@@ -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;