Skip to content

Commit

Permalink
Merge branch 'topic/usb-audio' into for-linus
Browse files Browse the repository at this point in the history
* topic/usb-audio:
  ALSA: usb-audio - Fix types taken in min()
  sound: usb-audio: do not make URBs longer than sync packet interval
  sound: usb-audio: add MIDI drain callback
  sound: usb-audio: use multiple output URBs
  sound: usb-audio: use multiple input URBs
  sound: usb-audio: Xonar U1 digital output support
  • Loading branch information
Takashi Iwai committed Sep 10, 2009
2 parents b34c866 + f1e6d3c commit fd30afa
Show file tree
Hide file tree
Showing 3 changed files with 256 additions and 96 deletions.
2 changes: 2 additions & 0 deletions sound/usb/usbaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,8 @@ static int init_substream_urbs(struct snd_usb_substream *subs, unsigned int peri
} else
urb_packs = 1;
urb_packs *= packs_per_ms;
if (subs->syncpipe)
urb_packs = min(urb_packs, 1U << subs->syncinterval);

/* decide how many packets to be used */
if (is_playback) {
Expand Down
Loading

0 comments on commit fd30afa

Please sign in to comment.