OK, so YUV422 does _not_ work for micron sensors, good to know ;) .
Anyway:Don't delete anything just store the patch in the microdia-directory and apply the attached patch:
$ git am 0001-Disable-YUV422-output-for-micron-sensors.patch Then rebuild insmod, test again(with libv4l). Good luck, GWater Vinicio Nocciolini schrieb:
GWater wrote:Great, were getting close.Now don't change the microdia directory anymore. We don't want to lose what we already got.Please download libv4l here: http://koji.fedoraproject.org/koji/buildinfo?buildID=70038 Then install it using: # rpm -i libv4l-0.5.4-1.fc9.i386.rpm Then run mplayer with the LD_PRELOAD prefix: $ LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so mplayer tv:// -tv \ driver=v4l2:width=640:height=480:fps=25:device=/dev/video0 -vo xv Good luck, GWater Vinicio Nocciolini schrieb:GWater wrote:Here's the correct version. GWater GWater schrieb:WAit - I send the old patch again, sorry. GWater Vinicio Nocciolini schrieb:GWater wrote:Hey, you need to apply the patchfile before something happens ;) . after switching to development branch do: $ git am *.patch GWater Vinicio schrieb:OK, I do everything from the begin But I wasn't lucky :) ------------------------------------------------- [EMAIL PROTECTED] ~]$ rm -rf microdia/[EMAIL PROTECTED] ~]$ git clone http://repo.or.cz/r/microdia.gitInitializedempty Git repository in /home/vinicio/microdia/.git/ Getting alternates list for http://repo.or.cz/r/microdia.git Getting pack list for http://repo.or.cz/r/microdia.git Getting index for pack cd343428e98ed39f9eb351986214dff40b7a6f59 Getting pack cd343428e98ed39f9eb351986214dff40b7a6f59 which contains 97e893a2f4e33aaf823f3b9d9c4a0a8dd589b69e ... walk 3e23a7742154ce45f339a3d8c4a1c0111b0200f3 walk 025d09e98b8ce68d3627c8cef8964c19996e514e [EMAIL PROTECTED] ~]$ cd microdia/ [EMAIL PROTECTED] microdia]$ git checkout --track -b development origin/developmentBranch development set up to track remote branch refs/remotes/origin/development. Switched to a new branch "development #I have copied before the patch file [EMAIL PROTECTED] microdia]$ ls *patch 0001-Add-sensor-MT9V112-used-in-6270-devices.patch [EMAIL PROTECTED] microdia]$ makemake -C /lib/modules/2.6.26.6-79.fc9.i686/build SUBDIRS=/home/vinicio/microdia modules make[1]: Entering directory `/usr/src/kernels/2.6.26.6-79.fc9.i686' CC [M] /home/vinicio/microdia/microdia-usb.o CC [M] /home/vinicio/microdia/microdia-v4l.o CC [M] /home/vinicio/microdia/microdia-sysfs.o CC [M] /home/vinicio/microdia/microdia-dev.o CC [M] /home/vinicio/microdia/microdia-queue.o CC [M] /home/vinicio/microdia/sn9c20x.o CC [M] /home/vinicio/microdia/omnivision.o CC [M] /home/vinicio/microdia/micron.o CC [M] /home/vinicio/microdia/microdia-debugfs.o LD [M] /home/vinicio/microdia/microdia.o Building modules, stage 2. MODPOST 1 modules CC /home/vinicio/microdia/microdia.mod.o LD [M] /home/vinicio/microdia/microdia.ko make[1]: Leaving directory `/usr/src/kernels/2.6.26.6-79.fc9.i686' [EMAIL PROTECTED] microdia]# modprobe videodev [EMAIL PROTECTED] microdia]# modprobe compat-ioctl32 [EMAIL PROTECTED] microdia]# insmod microdia.ko [EMAIL PROTECTED] ~]$ mplayer tv:// -tv driver=v4l2:width=640:height=480:fps=25:device=/dev/video0 -vo x11 MPlayer dev-SVN-r27514-4.3.0 (C) 2000-2008 MPlayer Team CPU: Genuine Intel(R) CPU T1300 @ 1.66GHz (Family: 6, Model: 14, Stepping: 8) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. mplayer: could not connect to socket mplayer: No such file or directoryFailed to open LIRC support. You will not be able to use your remotecontrol. Playing tv://. TV file format detected. Selected driver: v4l2 name: Video 4 Linux 2 input author: Martin Olschewski <[EMAIL PROTECTED]> comment: first try, more to come ;-) v4l2: unable to open '/dev/video0': No such file or directory v4l2: ioctl set mute failed: Bad file descriptor v4l2: 0 frames successfully processed, 0 frames dropped. On Nov 14, 7:20 pm, GWater <[EMAIL PROTECTED]> wrote:Here's your patch. Apply it with $ git am <patchfile> Then rebuild and insmod the new module. Good luck. GWater Vinicio Nocciolini schrieb:[0001-Add-sensor-MT9V112-used-in-6270-devices.patch4K ]From 4fdf333ff24c0744614182fc9834d6540caecc19 Mon Sep 17 00:00:00 2001OK, I have done a log file on Windows Check if if right for you or I have done some mistakes VinicioThat's great.If I need more logs I will ask - until them I'll use the log someoneelse posted some time ago. I'll tell you when we can start testing :) . GWater Vinicio Nocciolini schrieb:GWater wrote:OK, now here's my final diagnosis:You're webcam uses a micron MT9V112 sensor. We don't support these sensors (yet!). Maybe I'll take a look at it this weekend - but if there isn't a log from the windows driver yet I'll need some helpfrom you.Do you have a windows box with USb 2.0 where you can install thewebcam and record a log of the windows drivers actions? GWaterHi againI have a laptop Compaq nx6310 with a dual boot: Windows XP and Fedora 9In Windows my WebCam work properlyBut I don't kow how can I capture in Windows log action of my webcam :(Maybe SniffUSB 1.8 can help me?------------------------------------------------------------------------ ------------------------------------------------------------------------ ------------------------------------------------------------------------From: GWater <[EMAIL PROTECTED]> Date: Fri, 14 Nov 2008 19:14:27 +0100 Subject: [PATCH] Add sensor MT9V112 used in 6270 devices This is just basic support - no colorspace switching or other special stuff included. Signed-off-by: GWater <[EMAIL PROTECTED]> --- microdia-dev.c | 6 ++++ microdia.h | 1 +micron.c | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++micron.h | 2 + 4 files changed, 92 insertions(+), 0 deletions(-) diff --git a/microdia-dev.c b/microdia-dev.c index f3cdf4d..a233ab9 100644 --- a/microdia-dev.c +++ b/microdia-dev.c @@ -88,6 +88,12 @@ struct sensor_info sensors[] = { .address = 0x5d, .probe = mt9m001_probe }, + { + .id = MT9V112_SENSOR, + .name = "MT9V112", + .address = 0x5d, + .probe = mt9v112_probe + }, }; /** diff --git a/microdia.h b/microdia.h index b3ad414..bdf9610 100644 --- a/microdia.h +++ b/microdia.h @@ -310,6 +310,7 @@ enum microdia_sensors { MT9V111_SENSOR = 7, MT9V011_SENSOR = 8, MT9M001_SENSOR = 9, + MT9V112_SENSOR = 10, }; diff --git a/micron.c b/micron.c index cc70fec..dd4c50b 100644 --- a/micron.c +++ b/micron.c @@ -419,6 +419,89 @@ static __u8 mt9m001_init[][3] = { {0x2e, 0x00, 0x24}, {0x07, 0x00, 0x02}, }; +static __u8 mt9v112_init[][3] = {+ {0x0d, 0x00, 0x21}, {0x0d, 0x00, 0x20}, {0xf0, 0x00, 0x00}, + {0x34, 0xc0, 0x19}, {0x0a, 0x00, 0x11}, {0x0b, 0x00, 0x0b}, + {0x20, 0x07, 0x03}, {0x35, 0x20, 0x22}, {0xf0, 0x00, 0x01}, + {0x05, 0x00, 0x00}, {0x06, 0x34, 0x0c}, {0x3b, 0x04, 0x2a}, + {0x3c, 0x04, 0x00}, {0xf0, 0x00, 0x02}, {0x2e, 0x0c, 0x58}, + {0x5b, 0x00, 0x01}, {0xc8, 0x9f, 0x0b}, {0xf0, 0x00, 0x01}, + {0x9b, 0x53, 0x00}, {0xf0, 0x00, 0x00}, {0x2b, 0x00, 0x20}, + {0x2c, 0x00, 0x2a}, {0x2d, 0x00, 0x32}, {0x2e, 0x00, 0x20}, + {0x09, 0x01, 0xdc}, {0x01, 0x00, 0x0c}, {0x02, 0x00, 0x20}, + {0x03, 0x01, 0xe0}, {0x04, 0x02, 0x80}, {0x06, 0x00, 0x0c}, + {0x05, 0x00, 0x98}, {0x20, 0x07, 0x03}, {0x09, 0x01, 0xf2}, + {0x2b, 0x00, 0xa0}, {0x2c, 0x00, 0xa0}, {0x2d, 0x00, 0xa0}, + {0x2e, 0x00, 0xa0}, {0x01, 0x00, 0x0c}, {0x02, 0x00, 0x20}, + {0x03, 0x01, 0xe0}, {0x04, 0x02, 0x80}, {0x06, 0x00, 0x0c}, + {0x05, 0x00, 0x98}, {0x0d, 0x00, 0x21}, {0x0d, 0x00, 0x20}, + {0xf0, 0x00, 0x00}, {0x34, 0xc0, 0x19}, {0x0a, 0x00, 0x11}, + {0x0b, 0x00, 0x0b}, {0x20, 0x07, 0x03}, {0x35, 0x20, 0x22}, + {0xf0, 0x00, 0x01}, {0x05, 0x00, 0x00}, {0x06, 0x34, 0x0c}, + {0x3b, 0x04, 0x2a}, {0x3c, 0x04, 0x00}, {0xf0, 0x00, 0x02}, + {0x2e, 0x0c, 0x58}, {0x5b, 0x00, 0x01}, {0xc8, 0x9f, 0x0b}, + {0xf0, 0x00, 0x01}, {0x9b, 0x53, 0x00}, {0xf0, 0x00, 0x00}, + {0x2b, 0x00, 0x20}, {0x2c, 0x00, 0x2a}, {0x2d, 0x00, 0x32}, + {0x2e, 0x00, 0x20}, {0x09, 0x01, 0xdc}, {0x01, 0x00, 0x0c}, + {0x02, 0x00, 0x20}, {0x03, 0x01, 0xe0}, {0x04, 0x02, 0x80}, + {0x06, 0x00, 0x0c}, {0x05, 0x00, 0x98}, {0x20, 0x07, 0x03}, + {0x09, 0x01, 0xf2}, {0x2b, 0x00, 0xa0}, {0x2c, 0x00, 0xa0}, + {0x2d, 0x00, 0xa0}, {0x2e, 0x00, 0xa0}, {0x01, 0x00, 0x0c}, + {0x02, 0x00, 0x20}, {0x03, 0x01, 0xe0}, {0x04, 0x02, 0x80}, + {0x06, 0x00, 0x0c}, {0x05, 0x00, 0x98}, {0x09, 0x01, 0xc1}, + {0x2b, 0x00, 0xae}, {0x2c, 0x00, 0xae}, {0x2d, 0x00, 0xae},+ {0x2e, 0x00, 0xae}, +}; + +/** + * @brief Initialize mt9v112 sensors + * + * @param dev Pointer to device structure + * + * @return 0 or negative error code + * + */ +int mt9v112_initialize(struct usb_microdia *dev) +{ + int i; + int ret = 0; + __u8 value[2], reg; + for (i = 0; i < ARRAY_SIZE(mt9v112_init); i++) { + reg = mt9v011_init[i][0]; + value[0] = mt9v112_init[i][1]; + value[1] = mt9v112_init[i][2]; + ret = sn9c20x_write_i2c_data(dev, 2, reg, value); + if (ret < 0) { + UDIA_WARNING("Sensor Init Error (%d). " + "line %d\n", ret, i); + break; + } + } + + return ret; +} + +int mt9v112_probe(struct usb_microdia *dev) +{ + int ret; + __u8 buf[2]; + ret = sn9c20x_read_i2c_data(dev, 2, 0x00, buf); + if (ret == 0) { + if (buf[0] != 0x12) + return -EINVAL; + if (buf[1] == 0x29) { + mt9v112_initialize(dev); + dev->camera.modes = micron_resolutions;+ dev->camera.nmodes = ARRAY_SIZE(micron_resolutions);+ dev->camera.fmts = mt9x0xx_fmts;+ dev->camera.nfmts = ARRAY_SIZE(mt9x0xx_fmts);+ return MT9M001_SENSOR; + } + } + + return -EINVAL; +} + /** * @brief Initialize mt9v011 sensors * diff --git a/micron.h b/micron.h index 4e2ee99..1955e5e 100644 --- a/micron.h +++ b/micron.h@@ -121,4 +121,6 @@ int mt9m111_set_yuv422(struct usb_microdia *dev);int mt9m001_probe(struct usb_microdia *dev); +int mt9v112_probe(struct usb_microdia *dev); + #endif -- 1.5.6.5 signature.asc < 1KViewDownload[EMAIL PROTECTED] ~]$ rm -rf microdia/[EMAIL PROTECTED] ~]$ git clone http://repo.or.cz/r/microdia.gitInitialized empty Git repository in /home/vinicio/microdia/.git/Getting alternates list for http://repo.or.cz/r/microdia.git ... walk 025d09e98b8ce68d3627c8cef8964c19996e514e [EMAIL PROTECTED] ~]$ cd microdia/[EMAIL PROTECTED] microdia]$ git checkout --track -b development origin/development Branch development set up to track remote branch refs/remotes/origin/development.Switched to a new branch "development"[EMAIL PROTECTED] microdia]$ cp ../Desktop/0001-Add-sensor-MT9V112-used-in-6270-devices.patch .[EMAIL PROTECTED] microdia]$ ls *patch 0001-Add-sensor-MT9V112-used-in-6270-devices.patch[EMAIL PROTECTED] microdia]$ git am 0001-Add-sensor-MT9V112-used-in-6270-devices.patchApplying Add sensor MT9V112 used in 6270 devices [EMAIL PROTECTED] microdia]$ makemake -C /lib/modules/2.6.27.5-37.fc9.i686/build SUBDIRS=/home/vinicio/microdia modulesmake[1]: Entering directory `/usr/src/kernels/2.6.27.5-37.fc9.i686' ... make[1]: Leaving directory `/usr/src/kernels/2.6.27.5-37.fc9.i686' [EMAIL PROTECTED] ~]# modprobe videodev [EMAIL PROTECTED] ~]# modprobe compat-ioctl32 [EMAIL PROTECTED] ~]# cd /home/vinicio/microdia/ [EMAIL PROTECTED] microdia]# insmod microdia.ko[EMAIL PROTECTED] microdia]# mplayer tv:// -tv driver=v4l2:width=640:height=480:fps=25:device=/dev/video0 -vo x11MPlayer dev-SVN-r27514-4.3.0 (C) 2000-2008 MPlayer TeamCPU: Genuine Intel(R) CPU T1300 @ 1.66GHz (Family: 6, Model: 14, Stepping: 8)CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. mplayer: could not connect to socket mplayer: No such file or directoryFailed to open LIRC support. You will not be able to use your remote control.Playing tv://. TV file format detected. Selected driver: v4l2 name: Video 4 Linux 2 input author: Martin Olschewski <[EMAIL PROTECTED]> comment: first try, more to come ;-) v4l2: unable to open '/dev/video0': No such file or directory v4l2: ioctl set mute failed: Bad file descriptor v4l2: 0 frames successfully processed, 0 frames dropped. Exiting... (End of file) [EMAIL PROTECTED] microdia]# rmmod microdia.ko [EMAIL PROTECTED] microdia]# insmod microdia.ko log_level=15 [EMAIL PROTECTED] microdia]# dmesg ... microdia: Microdia USB 2.0 webcam driver loaded microdia: Microdia USB 2.0 Webcam - 0C45:6270 plugged-in. microdia: Detected SN9C20X Bridge usbcore: registered new interface driver usb_microdia_driver microdia: v2008.10 : Microdia USB 2.0 Webcam Driver microdia: usb_microdia_exit: Microdia USB 2.0 webcam driver unloaded usbcore: deregistering interface driver usb_microdia_driver microdia: Microdia USB 2.0 webcam driver loadedmicrodia: Probe function called with VendorID=0C45, ProductID=6270 and InterfaceNumber=0microdia: Microdia USB 2.0 Webcam - 0C45:6270 plugged-in. microdia: Release: 0101 microdia: Number of interfaces : 1 microdia: Detected SN9C20X Bridge microdia: I2C write to 0a: 90 30 0a 00 00 00 00 10 microdia: I2C slave 0x30 returned error during write to address 0x0a microdia: I2C write to 0a: 90 30 0a 00 00 00 00 10 microdia: I2C slave 0x30 returned error during write to address 0x0a microdia: I2C write to 0a: 90 30 0a 00 00 00 00 10 microdia: I2C slave 0x30 returned error during write to address 0x0a microdia: I2C write to 0a: 90 21 0a 00 00 00 00 10 microdia: I2C slave 0x21 returned error during write to address 0x0a microdia: I2C write to 0a: 90 21 0a 00 00 00 00 10 microdia: I2C slave 0x21 returned error during write to address 0x0a microdia: I2C write to f0: b0 5d f0 00 00 00 00 10 microdia: I2C write to 00: 90 5d 00 00 00 00 00 10 microdia: I2C read from 00: a2 5d 00 00 00 00 00 10 microdia: I2C read: 00 00 00 00 12 29 microdia: I2C write to 01: b0 5c 01 00 04 00 00 10 microdia: I2C slave 0x5c returned error during write to address 0x01 microdia: I2C write to ff: 90 5d ff 00 00 00 00 10 microdia: I2C read from 00: a2 5d 00 00 00 00 00 10 microdia: I2C read: ff 00 ff 00 12 29 microdia: I2C write to 00: 90 5d 00 00 00 00 00 10 microdia: I2C read from 00: a2 5d 00 00 00 00 00 10 microdia: I2C read: 00 00 00 00 12 29 microdia: I2C write to 00: 90 5d 00 00 00 00 00 10 microdia: I2C read from 00: a2 5d 00 00 00 00 00 10 microdia: I2C read: 00 00 00 00 12 29 microdia: I2C write to 07: b0 5d 07 00 21 00 00 10 microdia: I2C write to 0d: b0 5d 0d 00 20 00 00 10 microdia: I2C write to 0d: b0 5d 0d 00 00 00 00 10 microdia: I2C write to 01: b0 5d 01 c0 19 00 00 10 microdia: I2C write to 02: b0 5d 02 00 11 00 00 10 microdia: I2C write to 03: b0 5d 03 00 0b 00 00 10 microdia: I2C write to 04: b0 5d 04 07 03 00 00 10 microdia: I2C write to 05: b0 5d 05 20 22 00 00 10 microdia: I2C write to 06: b0 5d 06 00 01 00 00 10 microdia: I2C write to 0d: b0 5d 0d 00 00 00 00 10 microdia: I2C write to 0a: b0 5d 0a 34 0c 00 00 10 microdia: I2C write to 0b: b0 5d 0b 04 2a 00 00 10 microdia: I2C write to 0c: b0 5d 0c 04 00 00 00 10 microdia: I2C write to 0d: b0 5d 0d 00 02 00 00 10 microdia: I2C write to 0e: b0 5d 0e 0c 58 00 00 10 microdia: I2C write to 0f: b0 5d 0f 00 01 00 00 10 microdia: I2C write to 10: b0 5d 10 9f 0b 00 00 10 microdia: I2C write to 11: b0 5d 11 00 01 00 00 10 microdia: I2C write to 12: b0 5d 12 53 00 00 00 10 microdia: I2C write to 13: b0 5d 13 00 00 00 00 10 microdia: I2C write to 14: b0 5d 14 00 20 00 00 10 microdia: I2C write to 15: b0 5d 15 00 2a 00 00 10 microdia: I2C write to 16: b0 5d 16 00 32 00 00 10 microdia: I2C write to 17: b0 5d 17 00 20 00 00 10 microdia: I2C write to 18: b0 5d 18 01 dc 00 00 10 microdia: I2C write to 19: b0 5d 19 00 0c 00 00 10 microdia: I2C write to 1a: b0 5d 1a 00 20 00 00 10 microdia: I2C write to 1b: b0 5d 1b 01 e0 00 00 10 microdia: I2C write to 1c: b0 5d 1c 02 80 00 00 10 microdia: I2C write to 1d: b0 5d 1d 00 0c 00 00 10 microdia: I2C write to 32: b0 5d 32 00 98 00 00 10 microdia: I2C write to 20: b0 5d 20 07 03 00 00 10 microdia: I2C write to 21: b0 5d 21 01 f2 00 00 10 microdia: I2C write to 22: b0 5d 22 00 a0 00 00 10 microdia: I2C write to 23: b0 5d 23 00 a0 00 00 10 microdia: I2C write to 24: b0 5d 24 00 a0 00 00 10 microdia: I2C write to 25: b0 5d 25 00 a0 00 00 10 microdia: I2C write to 26: b0 5d 26 00 0c 00 00 10 microdia: I2C write to 27: b0 5d 27 00 20 00 00 10 microdia: I2C write to 2f: b0 5d 2f 01 e0 00 00 10 microdia: I2C write to 30: b0 5d 30 02 80 00 00 10 microdia: I2C write to 31: b0 5d 31 00 0c 00 00 10 microdia: I2C write to 32: b0 5d 32 00 98 00 00 10 microdia: I2C write to 33: b0 5d 33 00 21 00 00 10 microdia: I2C write to 34: b0 5d 34 00 20 00 00 10 microdia: I2C write to 3d: b0 5d 3d 00 00 00 00 10 microdia: I2C write to 40: b0 5d 40 c0 19 00 00 10 microdia: I2C write to 41: b0 5d 41 00 11 00 00 10 microdia: I2C write to 44: b0 5d 44 00 0b 00 00 10 microdia: I2C write to 5a: b0 5d 5a 07 03 00 00 10 microdia: I2C write to 5b: b0 5d 5b 20 22 00 00 10 microdia: I2C write to 5c: b0 5d 5c 00 01 00 00 10 microdia: I2C write to 5d: b0 5d 5d 00 00 00 00 10 microdia: I2C write to 5e: b0 5d 5e 34 0c 00 00 10 microdia: I2C write to 5f: b0 5d 5f 04 2a 00 00 10 microdia: I2C write to 62: b0 5d 62 04 00 00 00 10 microdia: I2C write to 0a: b0 5d 0a 00 02 00 00 10 microdia: I2C write to 06: b0 5d 06 0c 58 00 00 10 microdia: I2C write to 05: b0 5d 05 00 01 00 00 10 microdia: I2C write to 20: b0 5d 20 9f 0b 00 00 10 microdia: I2C write to 20: b0 5d 20 00 01 00 00 10 microdia: I2C write to 09: b0 5d 09 53 00 00 00 10 microdia: I2C write to 07: b0 5d 07 00 00 00 00 10 microdia: I2C write to 2b: b0 5d 2b 00 20 00 00 10 microdia: I2C write to 2c: b0 5d 2c 00 2a 00 00 10 microdia: I2C write to 2d: b0 5d 2d 00 32 00 00 10 microdia: I2C write to 2e: b0 5d 2e 00 20 00 00 10 microdia: I2C write to 07: b0 5d 07 01 dc 00 00 10 microdia: I2C write to 06: b0 5d 06 00 0c 00 00 10 microdia: I2C write to 06: b0 5d 06 00 20 00 00 10 microdia: I2C write to 05: b0 5d 05 01 e0 00 00 10 microdia: I2C write to 00: b0 5d 00 02 80 00 00 10 microdia: I2C write to 0d: b0 5d 0d 00 0c 00 00 10 microdia: I2C write to 0d: b0 5d 0d 00 98 00 00 10 microdia: I2C write to f0: b0 5d f0 07 03 00 00 10 microdia: I2C write to 34: b0 5d 34 01 f2 00 00 10 microdia: I2C write to 0a: b0 5d 0a 00 a0 00 00 10 microdia: I2C write to 0b: b0 5d 0b 00 a0 00 00 10 microdia: I2C write to 20: b0 5d 20 00 a0 00 00 10 microdia: I2C write to 35: b0 5d 35 00 a0 00 00 10 microdia: I2C write to f0: b0 5d f0 00 0c 00 00 10 microdia: I2C write to 05: b0 5d 05 00 20 00 00 10 microdia: I2C write to 06: b0 5d 06 01 e0 00 00 10 microdia: I2C write to 3b: b0 5d 3b 02 80 00 00 10 microdia: I2C write to 3c: b0 5d 3c 00 0c 00 00 10 microdia: I2C write to f0: b0 5d f0 00 98 00 00 10 microdia: I2C write to 2e: b0 5d 2e 01 c1 00 00 10 microdia: I2C write to 5b: b0 5d 5b 00 ae 00 00 10 microdia: I2C write to c8: b0 5d c8 00 ae 00 00 10 microdia: I2C write to f0: b0 5d f0 00 ae 00 00 10 microdia: I2C write to 9b: b0 5d 9b 00 ae 00 00 10 microdia: Failed to detect sensor. microdia: Devive Init failed (-19)! usbcore: registered new interface driver usb_microdia_driver microdia: v2008.10 : Microdia USB 2.0 Webcam Driver [EMAIL PROTECTED] microdia]#Now it's better :) My web cam light is green, but mplayer layout is all green :( ------------------------------------------------------------------------Pardon, before I have forgotten the cmd insmod :) In attachment the new situation --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- ------------------------------------------------------------------------
From 25c1608193a80d0b9670abce106f6190cc2b9e63 Mon Sep 17 00:00:00 2001
From: GWater <[EMAIL PROTECTED]>
Date: Tue, 18 Nov 2008 17:14:06 +0100
Subject: [PATCH] Disable YUV422 output for micron sensors
It doesn't work (yet).
Signed-off-by: GWater <[EMAIL PROTECTED]>
---
micron.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/micron.c b/micron.c
index a19d587..79436da 100644
--- a/micron.c
+++ b/micron.c
@@ -52,12 +52,12 @@ struct microdia_video_format mt9m111_fmts[] = {
.depth = 8,
.set_format = mt9m111_set_raw
},
- {
+/* {
.pix_fmt = V4L2_PIX_FMT_YUYV,
.desc = "YUV 4:2:2",
.depth = 16,
.set_format = mt9m111_set_yuv422
- },
+ },*/
{
.pix_fmt = V4L2_PIX_FMT_JPEG,
.desc = "JPEG (YUV 4:2:2)",
--
1.5.6.5
signature.asc
Description: OpenPGP digital signature
