From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423247AbXBHWtI (ORCPT ); Thu, 8 Feb 2007 17:49:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1423268AbXBHWtI (ORCPT ); Thu, 8 Feb 2007 17:49:08 -0500 Received: from twin.jikos.cz ([213.151.79.26]:38049 "EHLO twin.jikos.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423247AbXBHWtH (ORCPT ); Thu, 8 Feb 2007 17:49:07 -0500 Date: Thu, 8 Feb 2007 23:48:39 +0100 (CET) From: Jiri Kosina To: Takashi Iwai cc: linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org Subject: [PATCH] USB SOUND: usbaudio - remove urb->bandwidth reference Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi, Jeff spotted forgotten occurence of urb->bandwidth in isdn subsystem. When fixing it, I have done quick grep over the tree and found another one (which was even commented out). Let's just remove it. [PATCH] USB SOUND: usbaudio - remove urb->bandwidth reference Recent changes in usbcore removed the bandwidth field from struct urb. Remove the occurence in usbaudio.c Signed-off-by: Jiri Kosina --- sound/usb/usbaudio.c | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c index 19bdcc7..56fc9e9 100644 --- a/sound/usb/usbaudio.c +++ b/sound/usb/usbaudio.c @@ -324,16 +324,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; } -- Jiri Kosina From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Kosina Date: Thu, 08 Feb 2007 22:48:39 +0000 Subject: [PATCH] USB SOUND: usbaudio - remove urb->bandwidth reference Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Takashi Iwai Cc: linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org Hi, Jeff spotted forgotten occurence of urb->bandwidth in isdn subsystem. When fixing it, I have done quick grep over the tree and found another one (which was even commented out). Let's just remove it. [PATCH] USB SOUND: usbaudio - remove urb->bandwidth reference Recent changes in usbcore removed the bandwidth field from struct urb. Remove the occurence in usbaudio.c Signed-off-by: Jiri Kosina --- sound/usb/usbaudio.c | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c index 19bdcc7..56fc9e9 100644 --- a/sound/usb/usbaudio.c +++ b/sound/usb/usbaudio.c @@ -324,16 +324,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; } -- Jiri Kosina