On Friday 06 February 2009 20:28:08 GWater wrote:
> Rick Miles schrieb:
> > I've posted under a new subject as the message has changed. I have libv4l
> > and the newly compiled module  installed and here is dmesg output.
> >
> > usb 1-10: new high speed USB device using ehci_hcd and address 2
> > usb 1-10: configuration #1 chosen from 1 choice
> > usb 1-10: New USB device found, idVendor=0c45, idProduct=6242
> > usb 1-10: New USB device strings: Mfr=0, Product=1, SerialNumber=0
> > usb 1-10: Product: USB20 Camera
> > sn9c20x: SN9C20X USB 2.0 Webcam - 0C45:6242 plugged-in.
> > sn9c20x: Detected MT9M111 Sensor.
> > sn9c20x: Webcam device 0C45:6242 is now controlling video device
> > /dev/video1 sn9c20x: Using yuv420 output format
> > usbcore: registered new interface driver sn9c20x
> > sn9c20x: SN9C20x USB 2.0 Webcam Driver v2009.01 loaded
> > microdia: Microdia USB 2.0 webcam driver loaded
> > usbcore: registered new interface driver usb_microdia_driver
> > microdia: v2008.10 : Microdia USB 2.0 Webcam Driver
> >
> > The microdia module used to work well enough for my daughter but this
> > module brings no joy. Xcam just shows black an grey horizontal bars.
> > Mplayer and amsn config ap have colour but everything looks like an
> > amoeba or something. I've attached two pics.
> >
> > Any suggestions? I don't code but I can test. I'm running slackware-12.2
> > and kernel is a stock 2.6.27.7-smp.
>
> Your dmesg output show messages from microdia.ko _and_ sn9c20x.ko . I'm
> afraid they may be conflicting. If you installed microdia.ko permanently
> you need to remove it before loading or installing sn9c20x.ko .
>
> GWater

Silly me!!

r...@rick:/home/rick# lsmod | grep microdia
microdia              123800  0
videodev               36736  4 microdia,sn9c20x,cx8800,cx88xx
r...@rick:/home/rick# lsmod | grep sn9c20x
sn9c20x                60948  0
videodev               36736  4 microdia,sn9c20x,cx8800,cx88xx


usb 1-10: new high speed USB device using ehci_hcd and address 2
usb 1-10: configuration #1 chosen from 1 choice
usb 1-10: New USB device found, idVendor=0c45, idProduct=6242
usb 1-10: New USB device strings: Mfr=0, Product=1, SerialNumber=0
usb 1-10: Product: USB20 Camera
sn9c20x: SN9C20X USB 2.0 Webcam - 0C45:6242 plugged-in.
sn9c20x: Detected MT9M111 Sensor.
sn9c20x: Webcam device 0C45:6242 is now controlling video device /dev/video1
sn9c20x: Using yuv420 output format
usbcore: registered new interface driver sn9c20x
sn9c20x: SN9C20x USB 2.0 Webcam Driver v2009.01 loaded
microdia: Microdia USB 2.0 webcam driver loaded
usbcore: registered new interface driver usb_microdia_driver
microdia: v2008.10 : Microdia USB 2.0 Webcam Driver
usb 1-10: USB disconnect, address 2
sn9c20x: SN9C20X USB 2.0 Webcam unplugged
sn9c20x: SN9C20X USB 2.0 Webcam releases control of video device /dev/video1
microdia: usb_microdia_exit: Microdia USB 2.0 webcam driver unloaded
usbcore: deregistering interface driver usb_microdia_driver
####################################################

OK now I have completely removed microdia.ko from /lib/ and here is what dmesg 
says when the webcam is detected at boot:

sn9c20x: Detected MT9M111 Sensor.
sn9c20x: Webcam device 0C45:6242 is now controlling video device /dev/video0
sn9c20x: Using yuv420 output format
usbcore: registered new interface driver sn9c20x
sn9c20x: SN9C20x USB 2.0 Webcam Driver v2009.01 loaded
###################################################

Here is what dmesg has to say after I tried to run the webcam using the mplayer 
command from README:

sn9c20x: Iso frame 0 of USB has error -18
sn9c20x: Iso frame 1 of USB has error -18
sn9c20x: Iso frame 2 of USB has error -18
sn9c20x: Iso frame 3 of USB has error -18
sn9c20x: Iso frame 4 of USB has error -18
sn9c20x: Iso frame 5 of USB has error -18
sn9c20x: Iso frame 6 of USB has error -18
sn9c20x: Iso frame 7 of USB has error -18
sn9c20x: Iso frame 8 of USB has error -18
sn9c20x: Iso frame 9 of USB has error -18
sn9c20x: Iso frame 0 of USB has error -18
sn9c20x: Iso frame 1 of USB has error -18
sn9c20x: Iso frame 2 of USB has error -18
sn9c20x: Iso frame 3 of USB has error -18
sn9c20x: Iso frame 4 of USB has error -18
sn9c20x: Iso frame 5 of USB has error -18
sn9c20x: [E] Empty buffer queue.
###################################################

The video in mplayer was just as before, amoebae. I don't know if it will help 
but 
there was an error message in the mplayer output to screen. Could this be a 
v4l2 
problem?

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 ;-)
Selected device: SN9C20x USB 2.0 Webcam Driver
 Capabilites:  video capture  read/write  streaming
 supported norms:
 inputs: 0 = Webcam;v4l2: ioctl get input failed: Invalid argument

 Current input: 1
 Current format: unknown (0x30323953)
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Invalid argument
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: Cannot get fps
v4l2: ioctl set mute failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 640x480 => 640x480 Planar YV12
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Audio: no sound
Starting playback...
libv4l2: error dequeuing buf: Invalid argument
v4l2: ioctl set mute failed: Invalid argument
v4l2: 140 frames successfully processed, -139 frames dropped.

Exiting... (Quit)









-- 
Cheers,

Rick Miles

Written on Boomtime, the 37th of Chaos, 3175 
http://turtlespond.net



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to