Re: Upstreaming syntek driver
Hi, On 01/20/2011 12:35 PM, Luca Tettamanti wrote: On Tue, Jan 18, 2011 at 11:45 PM, Hans Verkuil wrote: [...] After a quick scan through the sources in svn I found the following (in no particular order): - Supports easycap model with ID 05e1:0408: a driver for this model is now in driver/staging/easycap. Can you elaborate? Is this the same hardware? - format conversion must be moved to libv4lconvert (if that can't already be used out of the box). Ditto for software brightness correction. - kill off the sysfs bits - kill off V4L1 - use the new control framework for the control handling - use video_ioctl2 instead of the current ioctl function - use unlocked_ioctl instead of ioctl Ok, major surgery then :) But probably the first step should be to see if this can't be made part of the gspca driver. I can't help thinking that that would be the best approach. But I guess the gspca developers can give a better idea of how hard that is. I've looked at the framework provided by gspca, it would probably allow to drop most of the USB support code from the driver. Yeah, that is the whole idea :) I give a big +1 to the Hans' suggestion to convert this to a gspca driver! I'm looking into frame handling. Let me know if you need any help / explanation about how certain things are done in gspca. Regards, Hans G (aka the other Hans). -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Upstreaming syntek driver
On Wed, Jan 19, 2011 at 8:21 AM, Nicolas wrote: [...] > Now I have a new laptop. So I make only in sort that stk11xx works with new > kernel releases. > > Of course I can help you, provide USB logs... But I haven't the time to do > new developments. Annotated logs might be useful, but for the moment I don't intend to engage into a full scale reverse engineering effort. Luca -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Upstreaming syntek driver
On Tue, Jan 18, 2011 at 11:45 PM, Hans Verkuil wrote: [...] > After a quick scan through the sources in svn I found the following (in no > particular order): > > - Supports easycap model with ID 05e1:0408: a driver for this model is now > in driver/staging/easycap. Can you elaborate? Is this the same hardware? > - format conversion must be moved to libv4lconvert (if that can't already be > used out of the box). Ditto for software brightness correction. > > - kill off the sysfs bits > > - kill off V4L1 > > - use the new control framework for the control handling > > - use video_ioctl2 instead of the current ioctl function > > - use unlocked_ioctl instead of ioctl Ok, major surgery then :) > But probably the first step should be to see if this can't be made part of the > gspca driver. I can't help thinking that that would be the best approach. But > I guess the gspca developers can give a better idea of how hard that is. I've looked at the framework provided by gspca, it would probably allow to drop most of the USB support code from the driver. I'm looking into frame handling. Luca -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Upstreaming syntek driver
On Tuesday, January 18, 2011 23:17:11 Luca Tettamanti wrote: > Hello, > I'm a "lucky" owner of a Syntek USB webcam (embedded on my Asus > laptop); as you might know Nicolas (CC) wrote a driver for these > cams[1][2], but it's still not included in mainline kernel. > Since I'd rather save myself and the other users the pain of compiling > an out-of-tree driver I'm offering my help to make the changes > necessary to see this driver upstreamed; I'm already a maintainer of > another driver (in hwmon), so I'm familiar with the development > process. > From a quick overview of the code I've spotted a few problems: > - minor style issues, trivially dealt with > - missing cleanups in error paths, idem > - possible memory leak, reported on the bug tracker - requires investigation > - big switch statements for all the models, could be simplified with > function pointers > > Another objection could be that the initialization is basically > writing magic numbers into magic registers... I guess that Nicolas > recorded the initialization sequence with a USB sniffer. No solution > for this one; does anybody have a contact inside Syntek? > > Are there other issues blocking the inclusion of this driver? After a quick scan through the sources in svn I found the following (in no particular order): - Supports easycap model with ID 05e1:0408: a driver for this model is now in driver/staging/easycap. - format conversion must be moved to libv4lconvert (if that can't already be used out of the box). Ditto for software brightness correction. - kill off the sysfs bits - kill off V4L1 - use the new control framework for the control handling - use video_ioctl2 instead of the current ioctl function - use unlocked_ioctl instead of ioctl But probably the first step should be to see if this can't be made part of the gspca driver. I can't help thinking that that would be the best approach. But I guess the gspca developers can give a better idea of how hard that is. Regards, Hans -- Hans Verkuil - video4linux developer - sponsored by Cisco -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Upstreaming syntek driver
Hello, I'm a "lucky" owner of a Syntek USB webcam (embedded on my Asus laptop); as you might know Nicolas (CC) wrote a driver for these cams[1][2], but it's still not included in mainline kernel. Since I'd rather save myself and the other users the pain of compiling an out-of-tree driver I'm offering my help to make the changes necessary to see this driver upstreamed; I'm already a maintainer of another driver (in hwmon), so I'm familiar with the development process. >From a quick overview of the code I've spotted a few problems: - minor style issues, trivially dealt with - missing cleanups in error paths, idem - possible memory leak, reported on the bug tracker - requires investigation - big switch statements for all the models, could be simplified with function pointers Another objection could be that the initialization is basically writing magic numbers into magic registers... I guess that Nicolas recorded the initialization sequence with a USB sniffer. No solution for this one; does anybody have a contact inside Syntek? Are there other issues blocking the inclusion of this driver? Luca [1] http://syntekdriver.sourceforge.net/ [2] http://syntekdriver.svn.sourceforge.net/viewvc/syntekdriver/trunk/ -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Syntek Driver ...
Greetings ... Sorry if this has come through before, but I did not recieve a copy or a reply, so I'm assuming the orginal message did not get through ... Or I'm been ignored ... ;-) I was wondering if anybody has looked at the Syntek Driver stk11xx at http://sourceforge.net/projects/syntekdriver/files/ ... This driver is meant to have updates for the EasyCap USB video capture device ... http://www.product-reviews.net/2007/08/15/hands-on-with-the-easycap-capture-usb-20-video-adapter-with-audio/ http://www.amazon.com/Audio-Creator-Capture-High-quality-Analog/dp/B001BWU8US Hans de Goede suggested I post here ... As was explained, I'm not a kernel programmer, but I do own one of these devices, so I can test, maybe compile code and maybe help debug stuff, but I don't have the skill to do much more than that ... Would be great to have included in the main line Video4Linux and then up stream Kernel ... Pretty please!! Thanks Mailed LeeT -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Syntek Driver ...
Greetings ... I was wondering if anybody has looked at the Syntek Driver stk11xx at http://sourceforge.net/projects/syntekdriver/files/ ... This driver is meant to have updates for the EasyCap USB video capture device ... Would be great to have included in the main line Video4Linux and then up stream Kernel ... Pretty please!! Mailed LeeT P.S. Hans de Goede suggested I post here ... -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html