Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155810
b: refs/heads/master
c: 947ca21
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Jul 23, 2009
1 parent 524867e commit 98ab5c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 89350640439e0160056de26995d52deb18202b3e
refs/heads/master: 947ca210f1df7656e19890832cb71fc3bdd88707
2 changes: 1 addition & 1 deletion trunk/sound/core/pcm_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 98ab5c0

Please sign in to comment.