Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148378
b: refs/heads/master
c: af8500b
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Jun 8, 2009
1 parent d33ac99 commit 6f98369
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 514eef9c2a711b4c24b97bb456d39695a6fe1775
refs/heads/master: af8500bbbd18438495d2f91ad07bda49fff3b770
4 changes: 4 additions & 0 deletions trunk/sound/pci/ctxfi/ctpcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ ct_pcm_playback_pointer(struct snd_pcm_substream *substream)
/* Read out playback position */
position = atc->pcm_playback_position(atc, apcm);
position = bytes_to_frames(runtime, position);
if (position >= runtime->buffer_size)
position = 0;
return position;
}

Expand Down Expand Up @@ -343,6 +345,8 @@ ct_pcm_capture_pointer(struct snd_pcm_substream *substream)
/* Read out playback position */
position = atc->pcm_capture_position(atc, apcm);
position = bytes_to_frames(runtime, position);
if (position >= runtime->buffer_size)
position = 0;
return position;
}

Expand Down

0 comments on commit 6f98369

Please sign in to comment.