[alsa-devel] [PATCH] sound: usb: support wireless devices in snd_usb_parse_datainterval

Takashi Iwai tiwai at suse.de
Mon Oct 7 12:53:36 CEST 2013


At Tue,  1 Oct 2013 14:32:57 -0500,
Thomas Pugliese wrote:
> 
> Hi, 
> This patch adds support for dev speed USB_SPEED_WIRELESS in 
> snd_usb_parse_datainterval which allows the usb sound core to create 
> ISO urbs with the correct number and size of buffers.
> 
> Signed-off-by: Thomas Pugliese <thomas.pugliese at gmail.com>

Thanks, applied this one, too.


Takashi

> ---
>  sound/usb/helper.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/sound/usb/helper.c b/sound/usb/helper.c
> index 6209024..51ed1ac 100644
> --- a/sound/usb/helper.c
> +++ b/sound/usb/helper.c
> @@ -118,6 +118,7 @@ unsigned char snd_usb_parse_datainterval(struct snd_usb_audio *chip,
>  {
>  	switch (snd_usb_get_speed(chip->dev)) {
>  	case USB_SPEED_HIGH:
> +	case USB_SPEED_WIRELESS:
>  	case USB_SPEED_SUPER:
>  		if (get_endpoint(alts, 0)->bInterval >= 1 &&
>  		    get_endpoint(alts, 0)->bInterval <= 4)
> -- 
> 1.7.10.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


More information about the Alsa-devel mailing list