diff options
Diffstat (limited to 'sound/drivers')
-rw-r--r-- | sound/drivers/pcsp/pcsp_lib.c | 4 |
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; |