Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321911
b: refs/heads/master
c: e9ba389
h: refs/heads/master
i:
  321909: 68ed289
  321907: 6ede74a
  321903: a82e56a
v: v3
  • Loading branch information
Takashi Iwai committed Aug 16, 2012
1 parent b1dda03 commit 7ad16eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 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: 3bdcff70b6cd049e6f4437b955850f5db83653cc
refs/heads/master: e9ba389c5ffc4dd29dfe17e00e48877302111135
4 changes: 0 additions & 4 deletions trunk/sound/usb/endpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -821,10 +821,6 @@ int snd_usb_endpoint_start(struct snd_usb_endpoint *ep)
if (++ep->use_count != 1)
return 0;

/* just to be sure */
deactivate_urbs(ep, 0, 1);
wait_clear_urbs(ep);

ep->active_mask = 0;
ep->unlink_mask = 0;
ep->phase = 0;
Expand Down
3 changes: 3 additions & 0 deletions trunk/sound/usb/pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,9 @@ static int snd_usb_pcm_prepare(struct snd_pcm_substream *substream)
subs->last_frame_number = 0;
runtime->delay = 0;

/* clear the pending deactivation on the target EPs */
deactivate_endpoints(subs);

/* for playback, submit the URBs now; otherwise, the first hwptr_done
* updates for all URBs would happen at the same time when starting */
if (subs->direction == SNDRV_PCM_STREAM_PLAYBACK)
Expand Down

0 comments on commit 7ad16eb

Please sign in to comment.