Re: USB low-speed bulk transfers

"Clemens Ladisch" <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Steinar H. Gunderson wrote:
> On Thu, Jun 07, 2007 at 01:14:45PM +0200, Clemens Ladisch wrote:
> > Try the attached patch.
> 
> It seems to work well, at least in my limited tests. I've been using it
> together with this patch to make usbaudio.c understand low-speed devices:
> 
> diff -ur linux-2.6.22-rc4/sound/usb/usbaudio.c linux-2.6.22-rc4.patched/sound/usb/usbaudio.c
> --- linux-2.6.22-rc4/sound/usb/usbaudio.c       2007-06-05 02:57:25.000000000 +0200
> +++ linux-2.6.22-rc4.patched/sound/usb/usbaudio.c       2007-06-07 13:56:08.000000000 +0200
>         
>         /* calculate the frequency in 16.16 format */
> -       if (snd_usb_get_speed(subs->dev) == USB_SPEED_FULL)
> -               subs->freqn = get_usb_full_speed_rate(rate);
> -       else        
> +       if (snd_usb_get_speed(subs->dev) == USB_SPEED_HIGH)
>                 subs->freqn = get_usb_high_speed_rate(rate);
> +       else    
> +               subs->freqn = get_usb_full_speed_rate(rate);

Low speed iso transfers are not possible (and this time we mean it :-) ,
so these changes for the PCM code are not needed.

We still need a check to prevent using an audio streaming interface of
a low speed device.


Regards,
Clemens

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.