Hi > -----Original Message----- > From: davinci-linux-open-source- > [email protected] [mailto:davinci-linux-open- > [email protected]] On Behalf Of jean- > philippe francois > Sent: Friday, February 04, 2011 4:28 PM > To: [email protected] > Subject: DM365 uvc gadget > > Hi, > > I have backported the UVC gadget patch by laurent pinchart on a custom > DM365 board. > It fails to allocate the required endpoints : > > ep = usb_ep_autoconfig(cdev->gadget, &uvc_streaming_ep); > if (!ep) { > INFO(cdev, "Unable to allocate streaming EP\n"); > goto error; > } > > I can see the message "Unable to allocate streaming EP" in the log. > How can I debug / fix this ? > > The mass storage gadget is working fine. > > Here is the failing endpoint descriptor : > > static struct usb_endpoint_descriptor uvc_streaming_ep = { > .bLength = USB_DT_ENDPOINT_SIZE, > .bDescriptorType = USB_DT_ENDPOINT, > .bEndpointAddress = USB_DIR_IN, > .bmAttributes = USB_ENDPOINT_XFER_ISOC, > .wMaxPacketSize = cpu_to_le16(1024), > .bInterval = 1, > }; >
The above endpoint requires endpoint fifo size to be 1024. Check with the fifo table entries in musb_core.c file and update as per requirement. > Jean-Philippe François > _______________________________________________ > Davinci-linux-open-source mailing list > [email protected] > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
