Mplayer detects but not Cheese

78 views
Skip to first unread message

vubuntu

unread,
Apr 30, 2009, 7:44:40 PM4/30/09
to microdia
Hiya,

My webcam has failed to work since I upgrade to Ubuntu 9.04 (kernel
2.6.28-11). I did everything again from scratch and now only Mplayer
detects and shows webcam images. Cheese shows neither "No wecam" nor
"With webcam". Please note it worked with the previous kernel.

I attach this log below. Please tell me what has gone wrong. Thanks.

==========
[ 102.704748] wlan0: associated
[ 131.591060] input: Virtual ThinkFinger Keyboard as /devices/virtual/
input/input11
[ 167.475342] sn9c20x: Unknown symbol video_ioctl2
[ 167.475713] sn9c20x: Unknown symbol v4l_compat_ioctl32
[ 167.476532] sn9c20x: Unknown symbol video_devdata
[ 167.477506] sn9c20x: Unknown symbol video_unregister_device
[ 167.477786] sn9c20x: Unknown symbol video_device_alloc
[ 167.477930] sn9c20x: Unknown symbol video_register_device
[ 167.478658] sn9c20x: Unknown symbol video_device_release
[ 225.442564] Linux video capture interface: v2.00
[ 297.829522] sn9c20x: SN9C20X USB 2.0 Webcam - 0C45:624F plugged-in.
[ 297.938092] sn9c20x: Detected OV9650 Sensor.
[ 297.938193] sn9c20x: Webcam device 0C45:624F is now controlling
video device /dev/video0
[ 297.938333] input: SN9C20X Webcam as /devices/pci0000:00/0000:00:1d.
7/usb1/1-4/input/input12
[ 297.977557] sn9c20x: Using yuv420 output format
[ 297.977619] usbcore: registered new interface driver sn9c20x
[ 297.977625] sn9c20x: SN9C20x USB 2.0 Webcam Driver v2009.01 loaded
[ 318.843281] sn9c20x: No ack from I2C slave 0x30 for write to
address 0x2d
[ 333.752319] sn9c20x: [E] Empty buffer queue.
[ 370.740312] sn9c20x: [E] Empty buffer queue.
[ 382.085121] sn9c20x: Using yuv420 output format
root@vietkhoa-laptop:/home/vietkhoa/microdia# cheese
root@vietkhoa-laptop:/home/vietkhoa/microdia# cheese --verbose
Cheese 2.26.0
Probing devices with HAL...
Found device 0c45:624f, getting capabilities...
Detected v4l2 device: SN9C20x USB 2.0 Webcam Driver
Driver: sn9c20x, version: 2099457
Capabilities: 0x05000001

Probing supported video formats...
Device: SN9C20x USB 2.0 Webcam Driver (/dev/video0)

root@vietkhoa-laptop:/home/vietkhoa/microdia#
=================

Brian Johnson

unread,
Apr 30, 2009, 8:29:25 PM4/30/09
to micr...@googlegroups.com
Have you tried starting cheese using LD_PRELOAD to make sure libv4l is
getting loaded?

I don't actually think thats needed in jaunty since interpid had the
gstreamer libraries linked against libv4l and i don't think that has
changed in jaunty but it shouldn't hurt either.

If you have done that and it does not help try loading the driver
module with the following

# insmod ./sn9c20x.ko log_level=15

This should turn on full debugging output. After starting cheese your
dmesg log should contain a bunch more infromation regarding what the
driver is trying to do.

vubuntu

unread,
May 2, 2009, 10:18:02 AM5/2/09
to microdia
Thanks, Brian

The problem is still there. I follow your instructions, and here is
the ouput:

root@vietkhoa-laptop:/home/vietkhoa/microdia# insmod ./sn9c20x.ko
log_level=15
insmod: error inserting './sn9c20x.ko': -1 File exists
root@vietkhoa-laptop:/home/vietkhoa/microdia#
root@vietkhoa-laptop:/home/vietkhoa/microdia# cheese
root@vietkhoa-laptop:/home/vietkhoa/microdia# LD_PRELOAD=/usr/lib/
libv4l/v4l2convert.so cheese
root@vietkhoa-laptop:/home/vietkhoa/microdia#

dmesg produces an output which does not fit here, so I just copy the
part that I think is involved

[ 248.146827] input: Virtual ThinkFinger Keyboard as /devices/virtual/
input/input11
[ 258.749491] sn9c20x: Unknown symbol video_ioctl2
[ 258.749863] sn9c20x: Unknown symbol v4l_compat_ioctl32
[ 258.750657] sn9c20x: Unknown symbol video_devdata
[ 258.751624] sn9c20x: Unknown symbol video_unregister_device
[ 258.751904] sn9c20x: Unknown symbol video_device_alloc
[ 258.752073] sn9c20x: Unknown symbol video_register_device
[ 258.752807] sn9c20x: Unknown symbol video_device_release
[ 267.816072] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action
0x6 frozen
[ 267.816087] ata2.00: cmd a0/00:00:00:08:00/00:00:00:00:00/a0 tag 0
pio 16392 in
[ 267.816089] cdb 4a 01 00 00 10 00 00 00 08 00 00 00 00 00
00 00
[ 267.816091] res 40/00:03:00:00:00/00:00:00:00:00/a0 Emask
0x4 (timeout)
[ 267.816096] ata2.00: status: { DRDY }
[ 272.630934] Linux video capture interface: v2.00
[ 272.864039] ata2: link is slow to respond, please be patient
(ready=0)
[ 277.848046] ata2: device not ready (errno=-16), forcing hardreset
[ 277.848059] ata2: soft resetting link
[ 278.068363] ata2.00: configured for UDMA/33
[ 278.068880] ata2: EH complete
[ 290.645240] sn9c20x: SN9C20X USB 2.0 Webcam - 0C45:624F plugged-in.
[ 290.754990] sn9c20x: Detected OV9650 Sensor.
[ 290.755458] sn9c20x: Webcam device 0C45:624F is now controlling
video device /dev/video0
[ 290.757714] input: SN9C20X Webcam as /devices/pci0000:00/0000:00:1d.
7/usb1/1-4/input/input12
[ 290.793979] sn9c20x: Using yuv420 output format
[ 290.794043] usbcore: registered new interface driver sn9c20x
[ 290.794049] sn9c20x: SN9C20x USB 2.0 Webcam Driver v2009.04 loaded
[ 327.287772] sn9c20x: No ack from I2C slave 0x30 for write to
address 0x2d
[ 335.529386] sn9c20x: [E] Empty buffer queue.
[ 373.784621] sn9c20x: Using yuv420 output format
[ 399.937574] input: Virtual ThinkFinger Keyboard as /devices/virtual/
input/inp

Cheers,


On May 1, 1:29 am, Brian Johnson <brij...@gmail.com> wrote:
> Have you tried starting cheese using LD_PRELOAD to make sure libv4l is
> getting loaded?
>
> I don't actually think thats needed in jaunty since interpid had the
> gstreamer libraries linked against libv4l and i don't think that has
> changed in jaunty but it shouldn't hurt either.
>
> If you have done that and it does not help try loading the driver
> module with the following
>
> # insmod ./sn9c20x.ko log_level=15
>
> This should turn on full debugging output. After starting cheese your
> dmesg log should contain a bunch more infromation regarding what the
> driver is trying to do.
>

vubuntu

unread,
May 2, 2009, 10:18:16 AM5/2/09
to microdia
Thanks, Brian

The problem is still there. I follow your instructions, and here is
the ouput:

root@vietkhoa-laptop:/home/vietkhoa/microdia# insmod ./sn9c20x.ko
log_level=15
insmod: error inserting './sn9c20x.ko': -1 File exists
root@vietkhoa-laptop:/home/vietkhoa/microdia#
root@vietkhoa-laptop:/home/vietkhoa/microdia# cheese
root@vietkhoa-laptop:/home/vietkhoa/microdia# LD_PRELOAD=/usr/lib/
libv4l/v4l2convert.so cheese
root@vietkhoa-laptop:/home/vietkhoa/microdia#

dmesg produces an output which does not fit here, so I just copy the
part that I think is involved

[ 248.146827] input: Virtual ThinkFinger Keyboard as /devices/virtual/
input/input11
[ 290.755458] sn9c20x: Webcam device 0C45:624F is now controlling
video device /dev/video0
[ 290.757714] input: SN9C20X Webcam as /devices/pci0000:00/0000:00:1d.
7/usb1/1-4/input/input12
[ 290.793979] sn9c20x: Using yuv420 output format
[ 290.794043] usbcore: registered new interface driver sn9c20x
[ 290.794049] sn9c20x: SN9C20x USB 2.0 Webcam Driver v2009.04 loaded
[ 327.287772] sn9c20x: No ack from I2C slave 0x30 for write to
address 0x2d
[ 335.529386] sn9c20x: [E] Empty buffer queue.
[ 373.784621] sn9c20x: Using yuv420 output format
[ 399.937574] input: Virtual ThinkFinger Keyboard as /devices/virtual/
input/inp

Cheers,


On May 1, 1:29 am, Brian Johnson <brij...@gmail.com> wrote:
> Have you tried starting cheese using LD_PRELOAD to make sure libv4l is
> getting loaded?
>
> I don't actually think thats needed in jaunty since interpid had the
> gstreamer libraries linked against libv4l and i don't think that has
> changed in jaunty but it shouldn't hurt either.
>
> If you have done that and it does not help try loading the driver
> module with the following
>
> # insmod ./sn9c20x.ko log_level=15
>
> This should turn on full debugging output. After starting cheese your
> dmesg log should contain a bunch more infromation regarding what the
> driver is trying to do.
>

Brian Johnson

unread,
May 2, 2009, 10:35:46 AM5/2/09
to micr...@googlegroups.com
Ok that log does not actually have the debug information in it.

You need to make sure to remove the sn9c20x.ko module before inserting it again.

# rmmod ./sn9c20x.ko
# insmod ./sn9c20x.ko log_level=15

Also best way to capture the necessary parts of the log i need to look
at is do the following
# tail -f /var/log/syslog > ~/debug.log

Now in another terminal window start cheese up and then you should
have a file called debug.log in your home directory that contains all
the debugging information needed.

vubuntu

unread,
May 2, 2009, 1:18:52 PM5/2/09
to microdia
Hi Brian,

> # tail -f /var/log/syslog > ~/debug.log

does not work with mine (it gets stuck in Terminal, or I did something
wrong...), so I have no "debug.log" file in Home. Anyway, here is the
output of dmesg that I think contains more info:

===================
[ 1473.041372] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT index=1,
type=1, flags=0, pixelformat=BA81, description='Bayer 8bit (BGGR)'
[ 1473.041378] sn9c20x: v4l_sn9c20x_ioctl 4A
[ 1473.041380] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FRAMESIZES
error -22
[ 1473.041384] sn9c20x: v4l_sn9c20x_ioctl 02
[ 1473.041386] sn9c20x: VIDIOC_ENUM_FMT 2
[ 1473.041388] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT error
-22
[ 1473.041454] sn9c20x: v4l_sn9c20x_ioctl 00
[ 1473.041456] sn9c20x: VIDIOC_QUERYCAP
[ 1473.041459] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCAP
driver=sn9c20x, card=SN9C20x USB 2.0 Webcam Driver, bus=usb-0000:00:1d.
7-4, version=0x00200904, capabilities=0x05000001
[ 1473.041497] sn9c20x: v4l_sn9c20x_ioctl 00
[ 1473.041499] sn9c20x: VIDIOC_QUERYCAP
[ 1473.041501] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCAP
driver=sn9c20x, card=SN9C20x USB 2.0 Webcam Driver, bus=usb-0000:00:1d.
7-4, version=0x00200904, capabilities=0x05000001
[ 1473.051818] sn9c20x: v4l_sn9c20x_ioctl 00
[ 1473.051823] sn9c20x: VIDIOC_QUERYCAP
[ 1473.051826] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCAP
driver=sn9c20x, card=SN9C20x USB 2.0 Webcam Driver, bus=usb-0000:00:1d.
7-4, version=0x00200904, capabilities=0x05000001
[ 1473.051836] sn9c20x: v4l_sn9c20x_ioctl 00
[ 1473.051838] sn9c20x: VIDIOC_QUERYCAP
[ 1473.051840] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCAP
driver=sn9c20x, card=SN9C20x USB 2.0 Webcam Driver, bus=usb-0000:00:1d.
7-4, version=0x00200904, capabilities=0x05000001
[ 1473.051847] sn9c20x: v4l_sn9c20x_ioctl 04
[ 1473.051850] SN9C20x USB 2.0 Webcam Driver: VIDIOC_G_FMT type=vid-
cap
[ 1473.051854] sn9c20x: GET FMT 1
[ 1473.051858] SN9C20x USB 2.0 Webcam Driver: width=640, height=480,
format=S920, field=interlaced, bytesperline=960 sizeimage=460800,
colorspace=8
[ 1473.051864] sn9c20x: v4l_sn9c20x_ioctl 02
[ 1473.051867] sn9c20x: VIDIOC_ENUM_FMT 0
[ 1473.051869] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT index=0,
type=1, flags=0, pixelformat=S920, description='SN9C20X I420 (YUV
4:2:0)'
[ 1473.051876] sn9c20x: v4l_sn9c20x_ioctl 4A
[ 1473.051878] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FRAMESIZES
error -22
[ 1473.051883] sn9c20x: v4l_sn9c20x_ioctl 02
[ 1473.051885] sn9c20x: VIDIOC_ENUM_FMT 1
[ 1473.051887] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT index=1,
type=1, flags=0, pixelformat=BA81, description='Bayer 8bit (BGGR)'
[ 1473.051893] sn9c20x: v4l_sn9c20x_ioctl 4A
[ 1473.051894] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FRAMESIZES
error -22
[ 1473.051899] sn9c20x: v4l_sn9c20x_ioctl 02
[ 1473.051901] sn9c20x: VIDIOC_ENUM_FMT 2
[ 1473.051903] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT error
-22
[ 1473.051944] sn9c20x: v4l_sn9c20x_ioctl 00
[ 1473.051947] sn9c20x: VIDIOC_QUERYCAP
[ 1473.051949] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCAP
driver=sn9c20x, card=SN9C20x USB 2.0 Webcam Driver, bus=usb-0000:00:1d.
7-4, version=0x00200904, capabilities=0x05000001
[ 1473.051958] sn9c20x: v4l_sn9c20x_ioctl 00
[ 1473.051960] sn9c20x: VIDIOC_QUERYCAP
[ 1473.051962] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCAP
driver=sn9c20x, card=SN9C20x USB 2.0 Webcam Driver, bus=usb-0000:00:1d.
7-4, version=0x00200904, capabilities=0x05000001
[ 1473.051969] sn9c20x: v4l_sn9c20x_ioctl 04
[ 1473.051971] SN9C20x USB 2.0 Webcam Driver: VIDIOC_G_FMT type=vid-
cap
[ 1473.051975] sn9c20x: GET FMT 1
[ 1473.051978] SN9C20x USB 2.0 Webcam Driver: width=640, height=480,
format=S920, field=interlaced, bytesperline=960 sizeimage=460800,
colorspace=8
[ 1473.051983] sn9c20x: v4l_sn9c20x_ioctl 02
[ 1473.051985] sn9c20x: VIDIOC_ENUM_FMT 0
[ 1473.051987] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT index=0,
type=1, flags=0, pixelformat=S920, description='SN9C20X I420 (YUV
4:2:0)'
[ 1473.051993] sn9c20x: v4l_sn9c20x_ioctl 4A
[ 1473.051995] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FRAMESIZES
error -22
[ 1473.052000] sn9c20x: v4l_sn9c20x_ioctl 02
[ 1473.052002] sn9c20x: VIDIOC_ENUM_FMT 1
[ 1473.052004] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT index=1,
type=1, flags=0, pixelformat=BA81, description='Bayer 8bit (BGGR)'
[ 1473.052010] sn9c20x: v4l_sn9c20x_ioctl 4A
[ 1473.052011] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FRAMESIZES
error -22
[ 1473.052016] sn9c20x: v4l_sn9c20x_ioctl 02
[ 1473.052018] sn9c20x: VIDIOC_ENUM_FMT 2
[ 1473.052020] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT error
-22
[ 1473.052045] sn9c20x: v4l_sn9c20x_ioctl 00
[ 1473.052047] sn9c20x: VIDIOC_QUERYCAP
[ 1473.052049] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCAP
driver=sn9c20x, card=SN9C20x USB 2.0 Webcam Driver, bus=usb-0000:00:1d.
7-4, version=0x00200904, capabilities=0x05000001
[ 1473.052061] sn9c20x: v4l_sn9c20x_ioctl 00
[ 1473.052063] sn9c20x: VIDIOC_QUERYCAP
[ 1473.052065] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCAP
driver=sn9c20x, card=SN9C20x USB 2.0 Webcam Driver, bus=usb-0000:00:1d.
7-4, version=0x00200904, capabilities=0x05000001
[ 1473.052074] sn9c20x: v4l_sn9c20x_ioctl 1A
[ 1473.052076] sn9c20x: VIDIOC_ENUMINPUT 0
[ 1473.052078] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUMINPUT
index=0, name=Webcam, type=2, audioset=0, tuner=0, std=00000000,
status=0
[ 1473.052131] sn9c20x: v4l_sn9c20x_ioctl 1A
[ 1473.052134] sn9c20x: VIDIOC_ENUMINPUT 1
[ 1473.052136] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUMINPUT error
-22
[ 1473.052141] sn9c20x: v4l_sn9c20x_ioctl 19
[ 1473.052144] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052147] sn9c20x: VIDIOC_QUERYCTRL id = 9963776
[ 1473.052149] sn9c20x: VIDIOC_QUERYCTRL found
[ 1473.052151] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980900, type=1, name=Brightness, min/max=0/255, step=1,
default=127, flags=0x00000000
[ 1473.052183] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052186] sn9c20x: VIDIOC_QUERYCTRL id = 9963777
[ 1473.052188] sn9c20x: VIDIOC_QUERYCTRL found
[ 1473.052190] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980901, type=1, name=Contrast, min/max=0/255, step=1,
default=127, flags=0x00000000
[ 1473.052201] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052203] sn9c20x: VIDIOC_QUERYCTRL id = 9963778
[ 1473.052205] sn9c20x: VIDIOC_QUERYCTRL found
[ 1473.052207] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980902, type=1, name=Saturation, min/max=0/255, step=1,
default=127, flags=0x00000000
[ 1473.052216] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052219] sn9c20x: VIDIOC_QUERYCTRL id = 9963779
[ 1473.052221] sn9c20x: VIDIOC_QUERYCTRL found
[ 1473.052223] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980903, type=1, name=Hue, min/max=-180/180, step=1, default=0,
flags=0x00000000
[ 1473.052232] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052234] sn9c20x: VIDIOC_QUERYCTRL id = 9963780
[ 1473.052236] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980904
[ 1473.052240] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error
-22
[ 1473.052245] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052247] sn9c20x: VIDIOC_QUERYCTRL id = 9963781
[ 1473.052249] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980905
[ 1473.052253] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error
-22
[ 1473.052257] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052259] sn9c20x: VIDIOC_QUERYCTRL id = 9963782
[ 1473.052261] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980906
[ 1473.052265] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error
-22
[ 1473.052269] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052271] sn9c20x: VIDIOC_QUERYCTRL id = 9963783
[ 1473.052273] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980907
[ 1473.052277] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error
-22
[ 1473.052281] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052283] sn9c20x: VIDIOC_QUERYCTRL id = 9963784
[ 1473.052285] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980908
[ 1473.052289] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error
-22
[ 1473.052293] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052295] sn9c20x: VIDIOC_QUERYCTRL id = 9963785
[ 1473.052297] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980909
[ 1473.052301] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error
-22
[ 1473.052305] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052307] sn9c20x: VIDIOC_QUERYCTRL id = 9963786
[ 1473.052309] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x98090a
[ 1473.052313] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error
-22
[ 1473.052317] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052319] sn9c20x: VIDIOC_QUERYCTRL id = 9963787
[ 1473.052321] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x98090b
[ 1473.052325] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error
-22
[ 1473.052329] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052332] sn9c20x: VIDIOC_QUERYCTRL id = 9963788
[ 1473.052334] sn9c20x: VIDIOC_QUERYCTRL found
[ 1473.052335] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x98090c, type=2, name=Automatic whitbalance control, min/max=0/1,
step=1, default=1, flags=0x00000000
[ 1473.052345] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052347] sn9c20x: VIDIOC_QUERYCTRL id = 9963789
[ 1473.052350] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x98090d
[ 1473.052353] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error
-22
[ 1473.052357] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052360] sn9c20x: VIDIOC_QUERYCTRL id = 9963790
[ 1473.052362] sn9c20x: VIDIOC_QUERYCTRL found
[ 1473.052363] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x98090e, type=1, name=Red Balance, min/max=0/127, step=1,
default=31, flags=0x00000000
[ 1473.052373] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052375] sn9c20x: VIDIOC_QUERYCTRL id = 9963791
[ 1473.052377] sn9c20x: VIDIOC_QUERYCTRL found
[ 1473.052379] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x98090f, type=1, name=Blue Balance, min/max=0/127, step=1,
default=31, flags=0x00000000
[ 1473.052389] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052391] sn9c20x: VIDIOC_QUERYCTRL id = 9963792
[ 1473.052393] sn9c20x: VIDIOC_QUERYCTRL found
[ 1473.052395] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980910, type=1, name=Gamma, min/max=0/255, step=1, default=51,
flags=0x00000000
[ 1473.052404] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052406] sn9c20x: VIDIOC_QUERYCTRL id = 9963793
[ 1473.052408] sn9c20x: VIDIOC_QUERYCTRL found
[ 1473.052410] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980911, type=1, name=Exposure, min/max=0/255, step=1, default=51,
flags=0x00000002
[ 1473.052420] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052422] sn9c20x: VIDIOC_QUERYCTRL id = 9963794
[ 1473.052424] sn9c20x: VIDIOC_QUERYCTRL found
[ 1473.052426] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980912, type=2, name=Automatic gain control, min/max=0/1, step=1,
default=0, flags=0x00000000
[ 1473.052435] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052437] sn9c20x: VIDIOC_QUERYCTRL id = 9963795
[ 1473.052439] sn9c20x: VIDIOC_QUERYCTRL found
[ 1473.052441] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980913, type=1, name=Gain, min/max=0/255, step=1, default=51,
flags=0x00000000
[ 1473.052450] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052453] sn9c20x: VIDIOC_QUERYCTRL id = 9963796
[ 1473.052454] sn9c20x: VIDIOC_QUERYCTRL found
[ 1473.052456] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980914, type=2, name=Horizontal flip, min/max=0/1, step=1,
default=0, flags=0x00000000
[ 1473.052463] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052465] sn9c20x: VIDIOC_QUERYCTRL id = 9963797
[ 1473.052467] sn9c20x: VIDIOC_QUERYCTRL found
[ 1473.052469] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980915, type=2, name=Vertical flip, min/max=0/1, step=1,
default=0, flags=0x00000000
[ 1473.052476] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052478] sn9c20x: VIDIOC_QUERYCTRL id = 9963798
[ 1473.052480] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980916
[ 1473.052484] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error
-22
[ 1473.052488] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052490] sn9c20x: VIDIOC_QUERYCTRL id = 9963799
[ 1473.052492] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980917
[ 1473.052496] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error
-22
[ 1473.052500] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052502] sn9c20x: VIDIOC_QUERYCTRL id = 9963800
[ 1473.052504] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980918
[ 1473.052508] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error
-22
[ 1473.052512] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052514] sn9c20x: VIDIOC_QUERYCTRL id = 9963801
[ 1473.052516] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x980919
[ 1473.052520] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error
-22
[ 1473.052524] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052526] sn9c20x: VIDIOC_QUERYCTRL id = 9963802
[ 1473.052528] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x98091a
[ 1473.052532] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error
-22
[ 1473.052536] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052538] sn9c20x: VIDIOC_QUERYCTRL id = 9963803
[ 1473.052540] sn9c20x: VIDIOC_QUERYCTRL found
[ 1473.052542] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x98091b, type=1, name=Sharpness, min/max=0/63, step=1, default=31,
flags=0x00000000
[ 1473.052549] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052551] sn9c20x: VIDIOC_QUERYCTRL id = 9963804
[ 1473.052553] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x98091c
[ 1473.052557] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error
-22
[ 1473.052561] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052563] sn9c20x: VIDIOC_QUERYCTRL id = 9963805
[ 1473.052565] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x98091d
[ 1473.052569] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error
-22
[ 1473.052573] sn9c20x: v4l_sn9c20x_ioctl 24
[ 1473.052575] sn9c20x: VIDIOC_QUERYCTRL id = 9963806
[ 1473.052577] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL
id=0x98091e
[ 1473.052581] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error
-22
[ 1473.052598] sn9c20x: v4l_sn9c20x_ioctl 17
[ 1473.052600] SN9C20x USB 2.0 Webcam Driver: VIDIOC_G_STD
std=0x00000000
[ 1473.052609] sn9c20x: v4l_sn9c20x_ioctl 26
[ 1473.052612] sn9c20x: GET INPUT 1699528136
[ 1473.052614] SN9C20x USB 2.0 Webcam Driver: VIDIOC_G_INPUT error -22
[ 1473.053239] sn9c20x: v4l_sn9c20x_ioctl 02
[ 1473.053243] sn9c20x: VIDIOC_ENUM_FMT 0
[ 1473.053246] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT index=0,
type=1, flags=0, pixelformat=S920, description='SN9C20X I420 (YUV
4:2:0)'
[ 1473.053256] sn9c20x: v4l_sn9c20x_ioctl 02
[ 1473.053259] sn9c20x: VIDIOC_ENUM_FMT 1
[ 1473.053262] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT index=1,
type=1, flags=0, pixelformat=BA81, description='Bayer 8bit (BGGR)'
[ 1473.053302] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053306] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053312] sn9c20x: TRY FMT 1
[ 1473.053317] SN9C20x USB 2.0 Webcam Driver: width=41057,
height=65535, format=S920, field=interlaced, bytesperline=61585
sizeimage=-258994321, colorspace=8
[ 1473.053322] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053325] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053331] sn9c20x: TRY FMT 1
[ 1473.053335] SN9C20x USB 2.0 Webcam Driver: width=41057,
height=65535, format=BA81, field=interlaced, bytesperline=41057
sizeimage=-1604296801, colorspace=8
[ 1473.053341] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053344] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053350] sn9c20x: TRY FMT 1
[ 1473.053354] SN9C20x USB 2.0 Webcam Driver: width=640, height=480,
format=S920, field=interlaced, bytesperline=960 sizeimage=460800,
colorspace=8
[ 1473.053359] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053362] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053368] sn9c20x: TRY FMT 1
[ 1473.053372] SN9C20x USB 2.0 Webcam Driver: width=640, height=480,
format=BA81, field=interlaced, bytesperline=640 sizeimage=307200,
colorspace=8
[ 1473.053394] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053397] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053403] sn9c20x: TRY FMT 1
[ 1473.053407] SN9C20x USB 2.0 Webcam Driver: width=41057,
height=65535, format=S920, field=interlaced, bytesperline=61585
sizeimage=-258994321, colorspace=8
[ 1473.053412] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053415] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053421] sn9c20x: TRY FMT 1
[ 1473.053425] SN9C20x USB 2.0 Webcam Driver: width=41057,
height=65535, format=BA81, field=interlaced, bytesperline=41057
sizeimage=-1604296801, colorspace=8
[ 1473.053431] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053434] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053439] sn9c20x: TRY FMT 1
[ 1473.053442] SN9C20x USB 2.0 Webcam Driver: width=640, height=480,
format=S920, field=interlaced, bytesperline=960 sizeimage=460800,
colorspace=8
[ 1473.053447] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053450] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053456] sn9c20x: TRY FMT 1
[ 1473.053460] SN9C20x USB 2.0 Webcam Driver: width=640, height=480,
format=BA81, field=interlaced, bytesperline=640 sizeimage=307200,
colorspace=8
[ 1473.053478] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053482] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053488] sn9c20x: TRY FMT 1
[ 1473.053492] SN9C20x USB 2.0 Webcam Driver: width=41057,
height=65535, format=S920, field=interlaced, bytesperline=61585
sizeimage=-258994321, colorspace=8
[ 1473.053497] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053500] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053505] sn9c20x: TRY FMT 1
[ 1473.053510] SN9C20x USB 2.0 Webcam Driver: width=41057,
height=65535, format=BA81, field=interlaced, bytesperline=41057
sizeimage=-1604296801, colorspace=8
[ 1473.053516] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053519] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053525] sn9c20x: TRY FMT 1
[ 1473.053529] SN9C20x USB 2.0 Webcam Driver: width=640, height=480,
format=S920, field=interlaced, bytesperline=960 sizeimage=460800,
colorspace=8
[ 1473.053534] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053537] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053542] sn9c20x: TRY FMT 1
[ 1473.053546] SN9C20x USB 2.0 Webcam Driver: width=640, height=480,
format=BA81, field=interlaced, bytesperline=640 sizeimage=307200,
colorspace=8
[ 1473.053564] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053567] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053573] sn9c20x: TRY FMT 1
[ 1473.053577] SN9C20x USB 2.0 Webcam Driver: width=41057,
height=65535, format=S920, field=interlaced, bytesperline=61585
sizeimage=-258994321, colorspace=8
[ 1473.053582] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053585] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053591] sn9c20x: TRY FMT 1
[ 1473.053596] SN9C20x USB 2.0 Webcam Driver: width=41057,
height=65535, format=BA81, field=interlaced, bytesperline=41057
sizeimage=-1604296801, colorspace=8
[ 1473.053601] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053605] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053610] sn9c20x: TRY FMT 1
[ 1473.053614] SN9C20x USB 2.0 Webcam Driver: width=640, height=480,
format=S920, field=interlaced, bytesperline=960 sizeimage=460800,
colorspace=8
[ 1473.053619] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053621] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053627] sn9c20x: TRY FMT 1
[ 1473.053631] SN9C20x USB 2.0 Webcam Driver: width=640, height=480,
format=BA81, field=interlaced, bytesperline=640 sizeimage=307200,
colorspace=8
[ 1473.053645] sn9c20x: v4l_sn9c20x_ioctl 4A
[ 1473.053648] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FRAMESIZES
error -22
[ 1473.053655] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053658] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053664] sn9c20x: TRY FMT 1
[ 1473.053668] SN9C20x USB 2.0 Webcam Driver: width=41057,
height=65535, format=BA81, field=interlaced, bytesperline=41057
sizeimage=-1604296801, colorspace=8
[ 1473.053674] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053676] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053682] sn9c20x: TRY FMT 1
[ 1473.053686] SN9C20x USB 2.0 Webcam Driver: width=640, height=480,
format=BA81, field=interlaced, bytesperline=640 sizeimage=307200,
colorspace=8
[ 1473.053949] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053952] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053958] sn9c20x: TRY FMT 1
[ 1473.053962] SN9C20x USB 2.0 Webcam Driver: width=640, height=480,
format=S920, field=interlaced, bytesperline=960 sizeimage=460800,
colorspace=8
[ 1473.053968] sn9c20x: v4l_sn9c20x_ioctl 40
[ 1473.053970] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid-
cap
[ 1473.053976] sn9c20x: TRY FMT 1
[ 1473.053981] SN9C20x USB 2.0 Webcam Driver: width=640, height=480,
format=BA81, field=interlaced, bytesperline=640 sizeimage=307200,
colorspace=8
[ 1473.053987] sn9c20x: v4l_sn9c20x_ioctl 15
[ 1473.053990] SN9C20x USB 2.0 Webcam Driver: VIDIOC_G_PARM type=1
[ 1473.054002] sn9c20x: v4l_sn9c20x_ioctl 08
[ 1473.054007] sn9c20x: Freeing 0 v4l2 buffers
[ 1473.054110] sn9c20x: Buffers Allocated 2
[ 1473.054112] SN9C20x USB 2.0 Webcam Driver: VIDIOC_REQBUFS count=2,
type=vid-cap, memory=mmap
[ 1473.054145] sn9c20x: v4l_sn9c20x_ioctl 09
[ 1473.054149] sn9c20x: QUERY BUFFERS 0 2
[ 1473.054152] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYBUF
00:00:00.00000000 index=0, type=vid-cap, bytesused=0,
flags=0x00000000, field=1, sequence=0, memory=mmap, offset/
userptr=0x00000000, length=460800
[ 1473.054163] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00
type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 1473.054178] sn9c20x: v4l_sn9c20x_ioctl 09
[ 1473.054181] sn9c20x: QUERY BUFFERS 1 2
[ 1473.054185] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYBUF
00:00:00.00000000 index=1, type=vid-cap, bytesused=0,
flags=0x00000000, field=1, sequence=0, memory=mmap, offset/
userptr=0x00071000, length=460800
[ 1473.054195] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00
type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 1473.054201] sn9c20x: v4l_sn9c20x_ioctl 09
[ 1473.054204] sn9c20x: QUERY BUFFERS 0 2
[ 1473.054207] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYBUF
00:00:00.00000000 index=0, type=vid-cap, bytesused=0,
flags=0x00000000, field=1, sequence=0, memory=mmap, offset/
userptr=0x00000000, length=460800
[ 1473.054217] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00
type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 1473.054275] sn9c20x: v4l_sn9c20x_ioctl 09
[ 1473.054279] sn9c20x: QUERY BUFFERS 1 2
[ 1473.054282] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYBUF
00:00:00.00000000 index=1, type=vid-cap, bytesused=0,
flags=0x00000000, field=1, sequence=0, memory=mmap, offset/
userptr=0x00071000, length=460800
[ 1473.054292] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00
type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 1473.054330] sn9c20x: v4l_sn9c20x_ioctl 0F
[ 1473.054333] sn9c20x: VIDIOC_QBUF
[ 1473.054336] sn9c20x: Queuing buffer 0.
[ 1473.054340] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QBUF
00:00:00.00000000 index=0, type=vid-cap, bytesused=0,
flags=0x00000000, field=1, sequence=0, memory=mmap, offset/
userptr=0xabcdef00, length=16777216
[ 1473.054350] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00
type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 1473.054355] sn9c20x: v4l_sn9c20x_ioctl 0F
[ 1473.054357] sn9c20x: VIDIOC_QBUF
[ 1473.054360] sn9c20x: Queuing buffer 1.
[ 1473.054363] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QBUF
00:00:00.00000000 index=1, type=vid-cap, bytesused=0,
flags=0x00000000, field=1, sequence=0, memory=mmap, offset/
userptr=0xabcdef01, length=16777216
[ 1473.054373] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00
type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 1473.054378] sn9c20x: v4l_sn9c20x_ioctl 12
[ 1473.054382] SN9C20x USB 2.0 Webcam Driver: VIDIOC_STREAMON type=vid-
cap
[ 1473.054388] sn9c20x: VIDIOC_STREAMON
[ 1473.054662] sn9c20x: Found Endpoint 0x1
[ 1473.055031] sn9c20x: usb_sn9c20x_isoc_init()
[ 1473.056444] sn9c20x: v4l_sn9c20x_ioctl 11
[ 1473.056448] sn9c20x: VIDIOC_DQBUF
[ 1473.118658] sn9c20x: AVGY Total: 323206 (631)
[ 1473.118679] sn9c20x: Dequeuing buffer 0 (3, 460800 bytes).
[ 1473.118683] sn9c20x: Sensor YAVG: 631
[ 1473.118686] SN9C20x USB 2.0 Webcam Driver: VIDIOC_DQBUF
344801:11:48.00456315 index=0, type=vid-cap, bytesused=460800,
flags=0x00000001, field=1, sequence=0, memory=mmap, offset/
userptr=0x00000000, length=460800
[ 1473.118697] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00
type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 1473.122016] sn9c20x: v4l_sn9c20x_ioctl 0F
[ 1473.122023] sn9c20x: VIDIOC_QBUF
[ 1473.122025] sn9c20x: Queuing buffer 0.
[ 1473.122028] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QBUF
00:00:00.00000000 index=0, type=vid-cap, bytesused=0,
flags=0x00000000, field=1, sequence=0, memory=mmap, offset/
userptr=0xabcdef00, length=16777216
[ 1473.122039] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00
type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 1473.122945] sn9c20x: v4l_sn9c20x_ioctl 11
[ 1473.122950] sn9c20x: VIDIOC_DQBUF
[ 1473.153645] sn9c20x: AVGY Total: 323021 (630)
[ 1473.167179] sn9c20x: Dequeuing buffer 1 (3, 460800 bytes).
[ 1473.167182] sn9c20x: Sensor YAVG: 630
[ 1473.167185] SN9C20x USB 2.0 Webcam Driver: VIDIOC_DQBUF
344801:11:48.00491301 index=1, type=vid-cap, bytesused=460800,
flags=0x00000001, field=1, sequence=1, memory=mmap, offset/
userptr=0x00071000, length=460800
[ 1473.167192] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00
type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 1473.170185] sn9c20x: v4l_sn9c20x_ioctl 0F
[ 1473.170190] sn9c20x: VIDIOC_QBUF
[ 1473.170191] sn9c20x: Queuing buffer 1.
[ 1473.170194] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QBUF
00:00:00.00000000 index=1, type=vid-cap, bytesused=0,
flags=0x00000000, field=1, sequence=0, memory=mmap, offset/
userptr=0xabcdef01, length=16777216
[ 1473.170201] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00
type=0, flags=0x00000000, frames=0, userbits=0x00000000
[ 1473.171315] sn9c20x: v4l_sn9c20x_ioctl 13
[ 1473.171319] SN9C20x USB 2.0 Webcam Driver: VIDIOC_STREAMOFF
type=vid-cap
[ 1473.171324] sn9c20x: VIDIOC_STREAMOFF
[ 1473.172153] sn9c20x: Isoc cleanup
[ 1473.190907] sn9c20x: Isoc cleanup
[ 1473.190910] sn9c20x: Freeing 2 v4l2 buffers
[ 1473.736038] usb 2-1: firmware: requesting ueagle-atm/DSP4p.bin
[ 1473.738756] usb 2-1: [UEAGLE-ATM] requesting firmware ueagle-atm/
DSP4p.bin fa
=====================

Brian Johnson

unread,
May 2, 2009, 6:14:29 PM5/2/09
to micr...@googlegroups.com
I'm not seeing anything immediately wrong with this log in fact as far
as i can tell it actually started the stream properly. When running
cheese what actually happens? is anything at all displayed in cheese?

One thing you could try is turning on jpeg support

# rmmod ./sn9c20x.ko
# insmod ./sn9c20x.ko jpeg=1

I don't really think it will change anything but i'm not sure what
else is the issue i know other people that use jaunty and tell me
cheese works fine with this driver under jaunty.

vubuntu

unread,
May 2, 2009, 8:19:10 PM5/2/09
to microdia
Thanks for your time, Brian.

Do you think new kernel (2.6.28-11) has blocked microdia driver from
working?

Cheese does not show anything special. I does not show "No webcam"
message and in its preferences, it detects my webcam with full
technical information but with no resolution options.

I'll make more tests to see if it works, and will let know know the
result.
> ...
>
> read more »

Jochen Kemnade

unread,
May 3, 2009, 6:42:29 AM5/3/09
to micr...@googlegroups.com
Hello,

vubuntu schrieb:


> Cheese does not show anything special. I does not show "No webcam"
> message and in its preferences, it detects my webcam with full
> technical information but with no resolution options.

I experience the same on my Jaunty system with the sn9c20x module from
the nickel62metal ppa (srcversion: 7E66E40CB260AB87B30BA25 if that helps).

> On May 2, 11:14 pm, Brian Johnson <brij...@gmail.com> wrote:
>> One thing you could try is turning on jpeg support
>>
>> # rmmod ./sn9c20x.ko
>> # insmod ./sn9c20x.ko jpeg=1

Doesn't work for me either.

>> I don't really think it will change anything but i'm not sure what
>> else is the issue i know other people that use jaunty and tell me
>> cheese works fine with this driver under jaunty.

Could it be, that it's a 64-bit issue? At least, IÄm running a 64-bit
system. Maybe I could try a 32-bit jaunty live-CD with the same driver
and see if that works.

Regards,
Jochen

signature.asc

Jochen Kemnade

unread,
May 3, 2009, 11:32:13 AM5/3/09
to micr...@googlegroups.com
Hi again,

Jochen Kemnade schrieb:


> Maybe I could try a 32-bit jaunty live-CD with the same driver and
> see if that works.

Unfortunately, I wasn't able to try the driver with a Jaunty live-CD as
it fails to boot on my computer.
Vubuntu, are you having the cheese (or rather gstreamer I guess)
problems on a 32- or a 64-bit machine? In the latter case, could you try
if it works with a 32-bit Jaunty live-CD?

Regards,
Jochen

signature.asc

vubuntu

unread,
May 3, 2009, 12:42:09 PM5/3/09
to microdia
Hi there,

I haven't got the 32bit version available to test. You may be right
that it seems to be a problem with the 64bit one only.

Or it could be that of Cheese which can't catch up with new video
stream in Jaunty.
>  signature.asc
> < 1KViewDownload

Jochen Kemnade

unread,
May 3, 2009, 2:02:53 PM5/3/09
to micr...@googlegroups.com
Hello,

vubuntu schrieb:


> Or it could be that of Cheese which can't catch up with new video
> stream in Jaunty.

I don't think this is a cheese problem (Uh, that sounds strange...). I
think, it is more likely to be related to gstreamer. AFAICT, cheese uses
gstreamer to acquire the image, which would also explain, why the webcam
works for example in skype, ekiga and mplayer which do not seem to use a
gstreamer-based backend.
Also, the video input preview in gstreamer-properties fails to show the
image from the webcam but only displays an error message saying "Video
for Linux 2 (v4l2): Could not negotiate format"

Regards,
Jochen
--
Jochen Kemnade
kem...@gmail.com
PGP: 0xb5cb0a3f

signature.asc

Brian Johnson

unread,
May 3, 2009, 2:47:38 PM5/3/09
to micr...@googlegroups.com
Yes cheese uses gstreamer for its v4l interface, so yeah the issue is
propably not directly related to cheese but either gstreamer or
libv4l. It also appears it may be 64bit related somehow since i have
had reports of our driver working just fine using cheese on jaunty but
i think the person was using 32bit rather then 64bit

vubuntu

unread,
May 3, 2009, 3:33:01 PM5/3/09
to microdia
Thanks, Jochen - Brian.

Yeah, something problematic with gstreamer and/or libv4l in the 64bit
version sounds more possible.

In my case, only MPlayer can show webcam images. Neither cheese nor
skype can do the same despite detecting the name of the webcam. Other
webcam applications say NO, either.

I also notice a strange thing which I suppose a problem, i.e: after my
laptop restarts, Kernel 2.6.28-11 does not remember the microdia
installation and configurations whilst Kernel 2.6.27-7 does.

Anyway, now I have to boot into Kernel 2.6.27-7 to use my webcam
with... a little reluctance :-)

But you guys here have done a great job. IOU 4 that.

Cheers,



On May 3, 7:47 pm, Brian Johnson <brij...@gmail.com> wrote:
> Yes cheese uses gstreamer for its v4l interface, so yeah the issue is
> propably not directly related to cheese but either gstreamer or
> libv4l. It also appears it may be 64bit related somehow since i have
> had reports of our driver working just fine using cheese on jaunty but
> i think the person was using 32bit rather then 64bit
>
> On Sun, May 3, 2009 at 2:02 PM, Jochen Kemnade <kemn...@gmail.com> wrote:
> > Hello,
>
> > vubuntu schrieb:
> >> Or it could be that of Cheese which can't catch up with new video
> >> stream in Jaunty.
>
> > I don't think this is a cheese problem (Uh, that sounds strange...). I
> > think, it is more likely to be related to gstreamer. AFAICT, cheese uses
> > gstreamer to acquire the image, which would also explain, why the webcam
> > works for example in skype, ekiga and mplayer which do not seem to use a
> > gstreamer-based backend.
> > Also, the video input preview in gstreamer-properties fails to show the
> > image from the webcam but only displays an error message saying "Video
> > for Linux 2 (v4l2): Could not negotiate format"
>
> > Regards,
> > Jochen
> > --
> > Jochen Kemnade
> > kemn...@gmail.com
> > PGP: 0xb5cb0a3f

Josua Grawitter

unread,
May 4, 2009, 3:09:36 AM5/4/09
to micr...@googlegroups.com
> --~--~---------~--~----~------------~-------~--~----~
> Lets make microdia webcams plug'n play, (currently plug'n pray)
> To post to this group, send email to micr...@googlegroups.com
> Visit us online https://groups.google.com/group/microdia
> -~----------~----~----~----~------~----~------~--~---

You have to compile and install sn9c20x.ko for every new kernel if you don't
use DKMS.

GWater

signature.asc

vubuntu

unread,
May 4, 2009, 5:47:28 AM5/4/09
to microdia


> You have to compile and install sn9c20x.ko for every new kernel if you don't
> use DKMS.

Hi, I mean I have done those. I even have DKMS installed.

What I don't understand is why it works well in 2.6.27-7, but has
problems in 2.6.28-11 (note: compiling and installing microdia driver
has been done successfully)

Brian Johnson

unread,
May 4, 2009, 10:41:59 AM5/4/09
to micr...@googlegroups.com
If you are compiling the kernel from our repository. Do the following
after compiling the driver to load it every time you boot.

# sudo cp ./sn9c20x.ko /lib/modules/`uname -r`/kernel/ubuntu/misc/media
# sudo depmod -a

Jochen Kemnade

unread,
May 4, 2009, 11:45:14 AM5/4/09
to micr...@googlegroups.com
Hello,

Brian Johnson schrieb:


> Yes cheese uses gstreamer for its v4l interface, so yeah the issue is
> propably not directly related to cheese but either gstreamer or
> libv4l. It also appears it may be 64bit related somehow since i have
> had reports of our driver working just fine using cheese on jaunty but
> i think the person was using 32bit rather then 64bit

Well, your patch 0002-Implement-ENUM_FRAMESIZES.patch fixes the issue
for me. I've got the cam working in gstreamer-properties and cheese.

signature.asc

Brian Johnson

unread,
May 4, 2009, 2:50:14 PM5/4/09
to micr...@googlegroups.com
Cool, so implementing the enum_framesizes ioctl seems to fix the
issues with gstreamer not working properly.

vubuntu, can you confirm if this also works for you as well?

vubuntu

unread,
May 4, 2009, 7:55:38 PM5/4/09
to microdia
Oh, it works? Good to hear.

Sorry for my stupidity but I can't find the patch "0002-Implement-
ENUM_FRAMESIZES.patch" and don't know how to patch.

Is it somewhere in "Fix bug when compiling on 2.6.29 or greater 64bit
kernel"

As far as I understand, the patch is included in the source code but I
fail to find it.

Anyway, when running gstreamer-properties, I get this log:

vietkhoa@vietkhoa-laptop:~$ gstreamer-propertiesgstreamer-properties-
Message: Skipping unavailable plugin 'artsdsink'
gstreamer-properties-Message: Skipping unavailable plugin
'glimagesink'
gstreamer-properties-Message: Skipping unavailable plugin
'v4lmjpegsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'qcamsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'esdmon'
gstreamer-properties-Message: Error running pipeline 'Video for Linux
2 (v4l2)': Could not negotiate format [gstbasesrc.c(2522):
gst_base_src_start (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src2:
Check your filtered caps, if any]
gstreamer-properties-Message: Error running pipeline 'Video for Linux
(v4l)': Could not get/set settings from/on resource. [v4l_calls.c
(409): gst_v4l_set_chan_norm (): /GstPipeline:pipeline1/
GstV4lSrc:v4lsrc2:
Error setting the channel/norm settings: Invalid argument]
vietkhoa@vietkhoa-laptop:~$



vubuntu

unread,
May 4, 2009, 9:23:00 PM5/4/09
to microdia
Hi, my bad! :-(

I have found where to get the patch but I still cannot apply it.

I copy the patch into microdia folder, and run this command:

vietkhoa@vietkhoa-laptop:~/microdia$ git am ./0002-Implement-input-
device-for-webcam-buttons.patch
Applying: Implement input device for webcam buttons
error: patch failed: .config:1
error: .config: patch does not apply
error: patch failed: Kconfig:13
error: Kconfig: patch does not apply
error: patch failed: Makefile:12
error: Makefile: patch does not apply
error: patch failed: omnivision.c:829
error: omnivision.c: patch does not apply
error: patch failed: omnivision.h:541
error: omnivision.h: patch does not apply
error: patch failed: sn9c20x-bridge.c:903
error: sn9c20x-bridge.c: patch does not apply
error: patch failed: sn9c20x-dev.c:136
error: sn9c20x-dev.c: patch does not apply
error: patch failed: sn9c20x-usb.c:32
error: sn9c20x-usb.c: patch does not apply
error: patch failed: sn9c20x.h:27
error: sn9c20x.h: patch does not apply
Patch failed at 0001.
When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip".
To restore the original branch and stop patching run "git am --abort".
vietkhoa@vietkhoa-laptop:~/microdia$

I try with git apply but get the same error.

What do I do wrongly?

Brian Johnson

unread,
May 4, 2009, 11:06:50 PM5/4/09
to micr...@googlegroups.com
Wrong patch. Its called 0002-Implement-ENUM_FRAMESIZES.patch and is
located in the follwoing thread

http://groups.google.com/group/microdia/browse_frm/thread/972a940d80ee4eab

vubuntu

unread,
May 5, 2009, 11:18:31 AM5/5/09
to microdia
Dinh Dong, Brian. It works with the patch applied! Cheese now can show
the webcam images. Good job!

But it turns out to have another problem: Skype can detect but cannnot
show webcam video output.

Here is the log when I run "LD_PRELOAD=/usr/lib/libv4/v4l2convert.so
skype", and test the webcam:

vietkhoa@vietkhoa-laptop:~$ LD_PRELOAD=/usr/lib/libv4/v4l2convert.so
skype
ERROR: ld.so: object '/usr/lib/libv4/v4l2convert.so' from LD_PRELOAD
cannot be preloaded: ignored.
ALSA lib ../../../src/pcm/pcm.c:2165:(snd_pcm_open_conf) Cannot open
shared library /usr/lib32/alsa-lib/libasound_module_pcm_bluetooth.so
ALSA lib ../../../src/pcm/pcm.c:2165:(snd_pcm_open_conf) Cannot open
shared library /usr/lib32/alsa-lib/libasound_module_pcm_bluetooth.so
ALSA lib ../../../src/pcm/pcm.c:2165:(snd_pcm_open_conf) Cannot open
shared library /usr/lib32/alsa-lib/libasound_module_pcm_bluetooth.so
ALSA lib ../../../src/pcm/pcm.c:2165:(snd_pcm_open_conf) Cannot open
shared library /usr/lib32/alsa-lib/libasound_module_pcm_bluetooth.so
ALSA lib ../../../src/pcm/pcm.c:2165:(snd_pcm_open_conf) Cannot open
shared library /usr/lib32/alsa-lib/libasound_module_pcm_bluetooth.so
ALSA lib ../../../src/pcm/pcm.c:2165:(snd_pcm_open_conf) Cannot open
shared library /usr/lib32/alsa-lib/libasound_module_pcm_bluetooth.so
Skype V4L2: Could not find a suitable capture format
Skype V4L2: Could not find a suitable capture format
Starting the process...
Skype Xv: Xv ports available: 16
Skype XShm: XShm support enabled
Skype Xv: Using Xv port 57
Skype Xv: No suitable overlay format found
vietkhoa@vietkhoa-laptop:~$

Brian Johnson

unread,
May 5, 2009, 11:23:07 AM5/5/09
to micr...@googlegroups.com
Ok glad this patch seems to sucesfully fix the issues with cheese.

As for skype it looks like you have a small typo
/usr/lib/libv4/v4l2convert.so -> /usr/lib/libv4l/v4l2convert.so

Josua Grawitter

unread,
May 5, 2009, 11:25:50 AM5/5/09
to micr...@googlegroups.com
> --~--~---------~--~----~------------~-------~--~----~
> Lets make microdia webcams plug'n play, (currently plug'n pray)
> To post to this group, send email to micr...@googlegroups.com
> Visit us online https://groups.google.com/group/microdia
> -~----------~----~----~----~------~----~------~--~---

The important line is this errorline:

ERROR: ld.so: object '/usr/lib/libv4/v4l2convert.so' from LD_PRELOAD cannot be
preloaded: ignored.

It can have several reasons:
1. There is now v4l2convert.so in the given location.
2. The given v4l2convert.so is not compiled for 32-bit machines. Skype is only
shipped as a 32-bit binary and will therfore not link with a 64-bit library.

GWater

signature.asc

Indra Gunawan

unread,
May 5, 2009, 6:43:33 PM5/5/09
to micr...@googlegroups.com
On Tue, 2009-05-05 at 08:18 -0700, vubuntu wrote:
>
> Dinh Dong, Brian. It works with the patch applied! Cheese now can show
> the webcam images. Good job!
>
> But it turns out to have another problem: Skype can detect but cannnot
> show webcam video output.

Just info that this patch also works with:

0c45:624f Microdia PC Camera (SN9C201 + OV9650)

It works perfect both with GStreamer and Skype. Oh, and also with
GYachE!

Thank you so much guys ...

--
Indra Gunawan | Feedsbrain
URL: http://www.indragunawan.com
E-Mail: in...@indragunawan.com

Reply all
Reply to author
Forward
0 new messages