Em Seg, 2007-03-19 às 15:09 -0700, ext David Brownell escreveu: > On Monday 19 March 2007 1:29 pm, Ragner Magalhaes wrote: > > The following patch implements USB Video Class 1.1 as defined at > > USB Device Class Definition for Video Devices, available at: > > No it doesn't ... it declares on-the-wire *structures* passed. > There's not one line of implementation code there ... either host > side, or peripheral side. So at least, the comment is wrong. :) Okay ... > > This needs some review against the spec. I know that several folk > have been looking at providing implementations, so I'm glad to see > the common struct declarations, but I'd like to see feedback from > people who've started such coding... and code sharing, e.g. with > the Berlios stuff. > > USB_CC_VIDEO doesn't belong in this file; <linux/usb/ch9.h> already > defines USB_CLASS_VIDEO anyway. Likewise with USB_CS_* and ch9.h > USB_DT_CS_* symbols ... Fixing ... > > I see a lot of *_UNDEFINED symbols, which seem dubious. If it's > not defined, then it shouldn't be defined! Wouldn't want to see > anyone assume that if a value doesn't match those *_UNDEFINED > symbols, it must accordingly be defined, for example. > But this lot of *_UNDEFINED are defined at USB_Video_Class_1.1.pdf. Looks in page 48 of the SUB Video Class specification the description of the field bFunctionProtocol for example.
You can also look the chapter "Appendix A. Video Device Class Codes" in page 122 where these *_UNDEFINED are defined. But case this is really unnecessary I can remove all these *_UNDEFINED and to substitute for an only one (USB_DT_FIELD_UNDEFINED 0x00) ... > - Dave Best regards, -- Ragner N Magalhães Instituto Nokia de Tecnologia - INdT Open Source Mobile Research Center - OSMRC E-mail: [EMAIL PROTECTED] ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel