aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/core/pcm_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c
index a63226232ef4..c7b35b20e659 100644
--- a/sound/core/pcm_lib.c
+++ b/sound/core/pcm_lib.c
@@ -362,7 +362,7 @@ static int snd_pcm_update_hw_ptr0(struct snd_pcm_substream *substream,
362 (unsigned long)runtime->hw_ptr_base); 362 (unsigned long)runtime->hw_ptr_base);
363 } 363 }
364 /* something must be really wrong */ 364 /* something must be really wrong */
365 if (delta >= runtime->buffer_size) { 365 if (delta >= runtime->buffer_size + runtime->period_size) {
366 hw_ptr_error(substream, 366 hw_ptr_error(substream,
367 "Unexpected hw_pointer value %s" 367 "Unexpected hw_pointer value %s"
368 "(stream=%i, pos=%ld, new_hw_ptr=%ld, " 368 "(stream=%i, pos=%ld, new_hw_ptr=%ld, "