Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175048
b: refs/heads/master
c: df30c0f
h: refs/heads/master
v: v3
  • Loading branch information
Shawn Bohrer authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 1448cf9 commit dad71f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: e0645d634666ec6c9970d0addb5982788e13e435
refs/heads/master: df30c0f0730647f428e54bd0305246292a5cdcb2
7 changes: 4 additions & 3 deletions trunk/drivers/staging/line6/capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ static void audio_in_callback(struct urb *urb)
fbuf, fsize * bytes_per_frame);
}

if ((line6pcm->pos_in_done +=
frames) >= runtime->buffer_size)
line6pcm->pos_in_done += frames;
if (line6pcm->pos_in_done >= runtime->buffer_size)
line6pcm->pos_in_done -= runtime->buffer_size;
}
}
Expand All @@ -235,7 +235,8 @@ static void audio_in_callback(struct urb *urb)
if (!shutdown) {
submit_audio_in_urb(substream);

if ((line6pcm->bytes_in += length) >= line6pcm->period_in) {
line6pcm->bytes_in += length;
if (line6pcm->bytes_in >= line6pcm->period_in) {
line6pcm->bytes_in -= line6pcm->period_in;
snd_pcm_period_elapsed(substream);
}
Expand Down

0 comments on commit dad71f5

Please sign in to comment.