GWater
k001 schrieb:
Right, development branch works fine for me, thanks! Except for one thing -- loaded microdia module breaks suspend-to-ram : ( Do you want me to provide some kind of debug info? On Nov 24, 11:43 am, GWater <[EMAIL PROTECTED]> wrote:Hopefully you won't have to fix this at all. Please check if the error still shows up in the development branch: $ git checkout --track -b development origin/development GWater Kir Kolyshkin schrieb:Hi, First of all thank you all for your work on microdia! Executive summary: repeating microdia_6242_start_stream() twice made my webcam working. How do I debug it to fix it in a more proper manner? Gory details follow. I am a semi-happy owner of Media-Tech MT4017 a.k.a. PIXER LED webcam [1]. This is how I see it in lsusb output: Bus 004 Device 005: ID 0c45:6242 Microdia Apparently this is SN9C201 bridge + MI1310 image sensor, as described in [2]. I am using driver from the latest git (top commit is 8eaf625). What I see with test mplayer command is green screen with some minor light-green flickering and errors from mplayer (let me know if you need more info, logs etc.). I found this [3] thread which describes a problem very similar to mine, and decided to try implementing the similar workaround. This is what I did (the patch is also attached): @@ -1044,6 +1044,8 @@ int dev_microdia_start_stream(struct usb_microdia *dev) */ int microdia_6242_start_stream(struct usb_microdia *dev) { + int xxx; + for (xxx = 0; xxx < 2; xxx++) { int i = -1; __u8 buf[48]; @@ -1472,6 +1474,7 @@ int microdia_6242_start_stream(struct usb_microdia *dev) buf[0] = 0x03; usb_microdia_control_write(dev, 0x1061, buf, 1); + } return 0; } Apparently that worked -- I am now seeing something with mplayer (way too dark but visible). Could anybody suggest me how to debug the init sequence to fix in in a less hackish way? [1]http://www.media-tech.eu/page.php?do=detailsā©=uk&pid=1283&kid=15 [2]http://groups.google.com/group/microdia/web/0c45-6242 [3]http://www.mail-archive.com/[email protected]/msg00001.htmlsignature.asc < 1KViewDownload--~--~---------~--~----~------------~-------~--~----~ Lets make microdia webcams plug'n play, (currently plug'n pray) To post to this group, send email to [email protected] Visit us online https://groups.google.com/group/microdia -~----------~----~----~----~------~----~------~--~---
signature.asc
Description: OpenPGP digital signature
