Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287828
b: refs/heads/master
c: cb74eb1
h: refs/heads/master
v: v3
  • Loading branch information
Mark Hills authored and Takashi Iwai committed Feb 22, 2012
1 parent f5195d5 commit 2ea33e7
Show file tree
Hide file tree
Showing 2 changed files with 5 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: fe879e2f6d65648b6398ac27f4c623ebd2e867f7
refs/heads/master: cb74eb15ac88d6aacf7e58db1d8f8dadee710fd9
5 changes: 4 additions & 1 deletion trunk/sound/usb/caiaq/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,10 @@ snd_usb_caiaq_pcm_pointer(struct snd_pcm_substream *sub)

spin_lock(&dev->spinlock);

if (dev->input_panic || dev->output_panic)
if (dev->input_panic || dev->output_panic) {
ptr = SNDRV_PCM_POS_XRUN;
goto unlock;
}

if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
ptr = bytes_to_frames(sub->runtime,
Expand All @@ -321,6 +323,7 @@ snd_usb_caiaq_pcm_pointer(struct snd_pcm_substream *sub)
ptr = bytes_to_frames(sub->runtime,
dev->audio_in_buf_pos[index]);

unlock:
spin_unlock(&dev->spinlock);
return ptr;
}
Expand Down

0 comments on commit 2ea33e7

Please sign in to comment.