From 98ab5c039476f896124ee2211c0a2536d95824a0 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 23 Jul 2009 16:21:08 +0200 Subject: [PATCH] --- yaml --- r: 155810 b: refs/heads/master c: 947ca210f1df7656e19890832cb71fc3bdd88707 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/sound/core/pcm_lib.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 5636f0828296..1162a102d1fe 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 89350640439e0160056de26995d52deb18202b3e +refs/heads/master: 947ca210f1df7656e19890832cb71fc3bdd88707 diff --git a/trunk/sound/core/pcm_lib.c b/trunk/sound/core/pcm_lib.c index d315f72949f4..72cfd47af6b8 100644 --- a/trunk/sound/core/pcm_lib.c +++ b/trunk/sound/core/pcm_lib.c @@ -256,7 +256,7 @@ static int snd_pcm_update_hw_ptr_interrupt(struct snd_pcm_substream *substream) delta = new_hw_ptr - hw_ptr_interrupt; } if (delta < 0) { - if (runtime->periods == 1) + if (runtime->periods == 1 || new_hw_ptr < old_hw_ptr) delta += runtime->buffer_size; if (delta < 0) { hw_ptr_error(substream,