[alsa-devel] [PATCH] sound: usb: USB3 Super Speed patch

Paul Zimmerman Paul.Zimmerman at synopsys.com
Wed Aug 11 20:02:09 CEST 2010


OK, I will respin the patch.

-- 
Paul

-----Original Message-----
From: Clemens Ladisch [mailto:clemens at ladisch.de] 
Sent: Tuesday, August 10, 2010 11:58 PM
To: Paul Zimmerman
Cc: Jaroslav Kysela; Takashi Iwai; Greg Kroah-Hartman; linux-usb at vger.kernel.org; alsa-devel at alsa-project.org
Subject: Re: [PATCH] sound: usb: USB3 Super Speed patch

Paul Zimmerman wrote:
> This patch adds Super Speed support to the USB drivers under sound/. It adds
> tests for USB_SPEED_SUPER to all the places that check for the USB speed.

> +++ b/sound/usb/midi.c
> @@ -834,7 +834,8 @@ static void snd_usbmidi_us122l_output(struct snd_usb_midi_out_endpoint *ep,
> +++ b/sound/usb/misc/ua101.c
> +++ b/sound/usb/usx2y/us122l.c
> +++ b/sound/usb/usx2y/usb_stream.c

These devices do not support super speed.

> +++ b/sound/usb/pcm.c
> -	if (snd_usb_get_speed(subs->dev) != USB_SPEED_HIGH)
> +	if (snd_usb_get_speed(subs->dev) != USB_SPEED_HIGH &&
> +	    snd_usb_get_speed(subs->dev) != USB_SPEED_SUPER)
>  		/* full speed devices have fixed data packet interval */
>  		ptmin = 1000;

In places like this, it would be better to write something like
	if (snd_usb_get_speed(subs->dev) == USB_SPEED_FULL)
or
	if (snd_usb_get_speed(subs->dev) < USB_SPEED_HIGH)


Regards,
Clemens


More information about the Alsa-devel mailing list