Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323199
b: refs/heads/master
c: 8dce30c
h: refs/heads/master
i:
  323197: cfc08ad
  323195: ec10818
  323191: 0a9306a
  323183: e4b48c7
  323167: abb72ff
  323135: 61f6bc5
  323071: a69bee5
v: v3
  • Loading branch information
Daniel Mack authored and Linus Torvalds committed Sep 27, 2012
1 parent 41c9fa0 commit 35d3280
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 9a7c590930c1d669a032c1b30cc8d95c069dc020
refs/heads/master: 8dce30c89113e314d29d3b8f362aadff8087fccb
8 changes: 7 additions & 1 deletion trunk/sound/usb/endpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,13 @@ static void prepare_outbound_urb(struct snd_usb_endpoint *ep,
/* no data provider, so send silence */
unsigned int offs = 0;
for (i = 0; i < ctx->packets; ++i) {
int counts = ctx->packet_size[i];
int counts;

if (ctx->packet_size[i])
counts = ctx->packet_size[i];
else
counts = snd_usb_endpoint_next_packet_size(ep);

urb->iso_frame_desc[i].offset = offs * ep->stride;
urb->iso_frame_desc[i].length = counts * ep->stride;
offs += counts;
Expand Down

0 comments on commit 35d3280

Please sign in to comment.