On Sat, 20 Aug 2005, Ivy wrote:
> Hi,
>
> I am tring to find isochronous endpoints in an Interface and claim
> the particular interface. I m using the following code. It does the same. But
> i am not able to receive isochronous packets ... my kernel version 2.6.9.
>
> i found difference in /proc/bus/usb/devices file when i m loading
> hci_usb and my module seperatly..
>
> The difference is, when hci_usb module is loaded, one hub device
> shows like some bandwidth allocated .
>
>
> T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
> B: Alloc= 27/900 us ( 3%), #Int= 1, #Iso= 2
> D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
> P: Vendor=0000 ProdID=0000 Rev= 2.06
> S: Manufacturer=Linux 2.6.9-1.667 uhci_hcd
> S: Product=UHCI Host Controller
> S: SerialNumber=0000:00:1d.3
> C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
> I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
> E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
>
> But when i loaded my module, it is displaying as Alloc 0%
> (Remaining all device are same). I think i am missing some thing. Any
> suggestions ...
Don't worry about bandwidth allocation for now.
> code snap:
> usb_fill_isoc_urb (bluetooth->isoc_read_urb,
> bluetooth->dev,
> usb_rcvisocpipe(bluetooth->dev,131),
> bluetooth->isoc_in_buffer,
> bluetooth->isoc_in_buffer_size,
> bluetooth_read_isoc_callback,
> bluetooth,bluetooth->isoc_in_interval);
>
>
> result = usb_submit_urb(bluetooth->isoc_read_urb,
> GFP_KERNEL);
> if (result < 0)
> err("Error in isoc submit ");
What is this usb_fill_isoc_urb? It doesn't look like there's any value
specified for isoc_read_urb->number_of_packets or for the iso_frame_desc
array.
Alan Stern
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel