Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198639
b: refs/heads/master
c: b406e61
h: refs/heads/master
i:
  198637: 5f9e6ea
  198635: cab382b
  198631: e8bf308
  198623: 583e24b
v: v3
  • Loading branch information
Clemens Ladisch authored and Takashi Iwai committed May 25, 2010
1 parent ed0c2eb commit 6d45a27
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 57c7ffc9414d79c8ec25800bbdbf8f801b2f148a
refs/heads/master: b406e6103baa3da85950f22d3d46d21a8da654c5
4 changes: 3 additions & 1 deletion trunk/sound/core/pcm_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,9 @@ static int snd_pcm_update_hw_ptr0(struct snd_pcm_substream *substream,
new_hw_ptr = hw_base + pos;
}
__delta:
delta = (new_hw_ptr - old_hw_ptr) % runtime->boundary;
delta = new_hw_ptr - old_hw_ptr;
if (delta < 0)
delta += runtime->boundary;
if (xrun_debug(substream, in_interrupt ?
XRUN_DEBUG_PERIODUPDATE : XRUN_DEBUG_HWPTRUPDATE)) {
char name[16];
Expand Down

0 comments on commit 6d45a27

Please sign in to comment.