Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354626
b: refs/heads/master
c: b642435
h: refs/heads/master
v: v3
  • Loading branch information
Wei Yongjun authored and Felipe Balbi committed Jan 10, 2013
1 parent 1e33f0c commit 0393247
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: 2b5080026cc4c29e68642fea2b7e2cc77b2796f3
refs/heads/master: b642435333b23ab01d526bd854d118704434fc88
8 changes: 2 additions & 6 deletions trunk/drivers/usb/gadget/f_uac2.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,16 +263,12 @@ uac2_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
struct audio_dev *agdev = uac2_to_agdev(uac2);
struct uac2_rtd_params *prm;
unsigned long flags;
struct usb_ep *ep;
int err = 0;

if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
ep = agdev->in_ep;
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
prm = &uac2->p_prm;
} else {
ep = agdev->out_ep;
else
prm = &uac2->c_prm;
}

spin_lock_irqsave(&prm->lock, flags);

Expand Down

0 comments on commit 0393247

Please sign in to comment.