Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92232
b: refs/heads/master
c: 0d52cea
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and Takashi Iwai committed Apr 24, 2008
1 parent 99f5f78 commit 0a8cd4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: e34ba212225a27cdf5f974be22cc539ae7ee7ca5
refs/heads/master: 0d52cea487c0213d6d7bca9c951210081e7b653b
4 changes: 2 additions & 2 deletions trunk/sound/oss/dmabuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,9 +795,9 @@ static int find_output_space(int dev, char **buf, int *size)
#ifdef BE_CONSERVATIVE
active_offs = dmap->byte_counter + dmap->qhead * dmap->fragment_size;
#else
active_offs = DMAbuf_get_buffer_pointer(dev, dmap, DMODE_OUTPUT);
active_offs = max(DMAbuf_get_buffer_pointer(dev, dmap, DMODE_OUTPUT), 0);
/* Check for pointer wrapping situation */
if (active_offs < 0 || active_offs >= dmap->bytes_in_use)
if (active_offs >= dmap->bytes_in_use)
active_offs = 0;
active_offs += dmap->byte_counter;
#endif
Expand Down

0 comments on commit 0a8cd4c

Please sign in to comment.