Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2643
b: refs/heads/master
c: fb4bd0a
h: refs/heads/master
i:
  2641: 0310261
  2639: 6ca2606
v: v3
  • Loading branch information
Jaroslav Kysela committed Jun 22, 2005
1 parent 72d2cac commit f1803db
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 21cb2a2ec5818cbba01bcb7f24388670322c77f9
refs/heads/master: fb4bd0adc4b5b6538933b098a67851d8f99b5ca3
7 changes: 5 additions & 2 deletions trunk/sound/core/oss/pcm_oss.c
Original file line number Diff line number Diff line change
Expand Up @@ -1539,10 +1539,13 @@ static int snd_pcm_oss_get_ptr(snd_pcm_oss_file_t *pcm_oss_file, int stream, str
} else {
delay = snd_pcm_oss_bytes(substream, delay) + fixup;
info.blocks = delay / runtime->oss.period_bytes;
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
if (runtime->oss.bytes == 0)
delay = 0;
info.bytes = (runtime->oss.bytes - delay) & INT_MAX;
else
} else {
info.bytes = (runtime->oss.bytes + delay) & INT_MAX;
}
}
if (copy_to_user(_info, &info, sizeof(info)))
return -EFAULT;
Expand Down

0 comments on commit f1803db

Please sign in to comment.