All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] USB SOUND: usbaudio - remove urb->bandwidth reference
@ 2007-02-08 22:48 ` Jiri Kosina
  0 siblings, 0 replies; 3+ messages in thread
From: Jiri Kosina @ 2007-02-08 22:48 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: linux-kernel, linux-sound

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 <jkosina@suse.cz>

---

 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] USB SOUND: usbaudio - remove urb->bandwidth reference
@ 2007-02-08 22:48 ` Jiri Kosina
  0 siblings, 0 replies; 3+ messages in thread
From: Jiri Kosina @ 2007-02-08 22:48 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: linux-kernel, linux-sound

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 <jkosina@suse.cz>

---

 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] USB SOUND: usbaudio - remove urb->bandwidth reference
  2007-02-08 22:48 ` Jiri Kosina
  (?)
@ 2007-02-09 11:56 ` Takashi Iwai
  -1 siblings, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2007-02-09 11:56 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-kernel

At Thu, 8 Feb 2007 23:48:39 +0100 (CET),
Jiri Kosina wrote:
> 
> 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 <jkosina@suse.cz>

Thanks, applied to ALSA tree now.


Takashi

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-02-09 11:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-08 22:48 [PATCH] USB SOUND: usbaudio - remove urb->bandwidth reference Jiri Kosina
2007-02-08 22:48 ` Jiri Kosina
2007-02-09 11:56 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.