Skip to content

Commit

Permalink
[ALSA] usbaudio - remove urb->bandwidth reference
Browse files Browse the repository at this point in the history
Recent changes in usbcore removed the bandwidth field from struct urb.
Remove the occurence in usbaudio.c

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
  • Loading branch information
Jiri Kosina authored and Jaroslav Kysela committed Feb 14, 2007
1 parent 9e292c0 commit 596f967
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions sound/usb/usbaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,16 +325,6 @@ static int prepare_capture_urb(struct snd_usb_substream *subs,
}
urb->transfer_buffer_length = offs;
urb->number_of_packets = ctx->packets;
#if 0 // for check
if (! urb->bandwidth) {
int bustime;
bustime = usb_check_bandwidth(urb->dev, urb);
if (bustime < 0)
return bustime;
printk("urb %d: bandwidth = %d (packets = %d)\n", ctx->index, bustime, urb->number_of_packets);
usb_claim_bandwidth(urb->dev, urb, bustime, 1);
}
#endif // for check
return 0;
}

Expand Down

0 comments on commit 596f967

Please sign in to comment.