GWater,

Ok sure seems that the DQBUF ioctl isn;t getting called so no video stream.

However it also seems you are using the gspca_sn9c20x module with an
older version of the whole v4l subsystem.  Please make sure to unload
all v4l related module and use the ones that are compiled when you
compile the hg v4l-dvb repository. The following modules should be the
main v4l modules you need to make sure to use the latest version of
gspca_sn9c20x
gspca_main
videodev
v4l1-compat

Don't know if this will actually fix things but you probably shouldn't
be mixing module versions just to be safe.
If things stil don't work after doing that post the new debugging log
and i'll take another look.

On Tue, Jul 28, 2009 at 4:13 PM, Josua Grawitter<[email protected]> wrote:
> Here you go:
>
> gspca: main v2.7.0 registered
> usbcore: registered new interface driver sn9c20x
> sn9c20x: registered
> usb 1-4: new high speed USB device using ehci_hcd and address 5
> usb 1-4: New USB device found, idVendor=0c45, idProduct=624e
> usb 1-4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
> usb 1-4: Product: USB20 Camera
> usb 1-4: configuration #1 chosen from 1 choice
> input: SN9C20X Webcam as 
> /devices/pci0000:00/0000:00:02.1/usb1/1-4/input/input7
> sn9c20x: SOI968 sensor detected
> gspca main driver: VIDIOC_QUERYCAP driver=sn9c20x, card=USB20 Camera    , 
> bus=usb-0000:00:02.1-4, version=0x00020700, capabilities=0x05000001
> gspca main driver: VIDIOC_QUERYCAP driver=sn9c20x, card=USB20 Camera    , 
> bus=usb-0000:00:02.1-4, version=0x00020700, capabilities=0x05000001
> gspca main driver: VIDIOC_QUERYCAP driver=sn9c20x, card=USB20 Camera    , 
> bus=usb-0000:00:02.1-4, version=0x00020700, capabilities=0x05000001
> gspca main driver: VIDIOC_G_FMT type=vid-cap
> gspca main driver: width=640, height=480, format=S920, field=none, 
> bytesperline=960 sizeimage=460800, colorspace=8
> gspca main driver: VIDIOC_ENUM_FMT index=0, type=1, flags=0, 
> pixelformat=S920, description='S920'
> gspca main driver: VIDIOC_ENUM_FRAMESIZES index=0, pixelformat=808597843, 
> type=0 <7>gspca main driver: - Unknown type!
> gspca main driver: VIDIOC_ENUM_FRAMESIZES error -22
> gspca main driver: VIDIOC_ENUM_FMT index=1, type=1, flags=0, 
> pixelformat=BA81, description='BA81'
> gspca main driver: VIDIOC_ENUM_FRAMESIZES index=0, pixelformat=825770306, 
> type=0 <7>gspca main driver: - Unknown type!
> gspca main driver: VIDIOC_ENUM_FRAMESIZES error -22
> gspca main driver: VIDIOC_ENUM_FMT index=2, type=1, flags=1, 
> pixelformat=JPEG, description='JPEG'
> gspca main driver: VIDIOC_ENUM_FRAMESIZES index=0, pixelformat=1195724874, 
> type=0 <7>gspca main driver: - Unknown type!
> gspca main driver: VIDIOC_ENUM_FRAMESIZES error -22
> gspca main driver: VIDIOC_ENUM_FMT error -22
> gspca main driver: VIDIOC_QUERYCAP driver=sn9c20x, card=USB20 Camera    , 
> bus=usb-0000:00:02.1-4, version=0x00020700, capabilities=0x05000001
> gspca main driver: VIDIOC_QUERYCAP driver=sn9c20x, card=USB20 Camera    , 
> bus=usb-0000:00:02.1-4, version=0x00020700, capabilities=0x05000001
> gspca main driver: VIDIOC_G_STD std=0x00000000
> gspca main driver: VIDIOC_ENUMINPUT index=0, name=sn9c20x, type=2, 
> audioset=0, tuner=0, std=00000000, status=0
> gspca main driver: VIDIOC_ENUMINPUT error -22
> gspca main driver: VIDIOC_G_INPUT value=0
> gspca main driver: VIDIOC_ENUM_FMT index=0, type=1, flags=0, 
> pixelformat=S920, description='S920'
> gspca main driver: VIDIOC_ENUM_FMT index=1, type=1, flags=0, 
> pixelformat=BA81, description='BA81'
> gspca main driver: VIDIOC_ENUM_FMT index=2, type=1, flags=1, 
> pixelformat=JPEG, description='JPEG'
> gspca main driver: VIDIOC_TRY_FMT type=vid-cap
> gspca main driver: width=640, height=480, format=S920, field=none, 
> bytesperline=960 sizeimage=460800, colorspace=8
> gspca main driver: VIDIOC_TRY_FMT type=vid-cap
> gspca main driver: width=640, height=480, format=BA81, field=none, 
> bytesperline=640 sizeimage=307200, colorspace=8
> gspca main driver: VIDIOC_TRY_FMT type=vid-cap
> gspca main driver: width=640, height=480, format=JPEG, field=none, 
> bytesperline=960 sizeimage=460800, colorspace=7
> gspca main driver: VIDIOC_S_FMT type=vid-cap
> gspca main driver: width=640, height=480, format=JPEG, field=none, 
> bytesperline=960 sizeimage=460800, colorspace=7
> gspca main driver: VIDIOC_ENUMINPUT index=0, name=sn9c20x, type=2, 
> audioset=0, tuner=0, std=00000000, status=0
> gspca main driver: VIDIOC_S_INPUT value=0
> gspca main driver: VIDIOC_TRY_FMT type=vid-cap
> gspca main driver: width=320, height=240, format=S920, field=none, 
> bytesperline=480 sizeimage=115200, colorspace=8
> gspca main driver: VIDIOC_TRY_FMT type=vid-cap
> gspca main driver: width=320, height=240, format=BA81, field=none, 
> bytesperline=320 sizeimage=76800, colorspace=8
> gspca main driver: VIDIOC_TRY_FMT type=vid-cap
> gspca main driver: width=640, height=480, format=JPEG, field=none, 
> bytesperline=960 sizeimage=460800, colorspace=7
> gspca main driver: VIDIOC_S_FMT type=vid-cap
> gspca main driver: width=320, height=240, format=S920, field=none, 
> bytesperline=480 sizeimage=115200, colorspace=8
> gspca main driver: VIDIOC_TRY_FMT type=vid-cap
> gspca main driver: width=320, height=240, format=S920, field=none, 
> bytesperline=480 sizeimage=115200, colorspace=8
> gspca main driver: VIDIOC_TRY_FMT type=vid-cap
> gspca main driver: width=320, height=240, format=BA81, field=none, 
> bytesperline=320 sizeimage=76800, colorspace=8
> gspca main driver: VIDIOC_TRY_FMT type=vid-cap
> gspca main driver: width=640, height=480, format=JPEG, field=none, 
> bytesperline=960 sizeimage=460800, colorspace=7
> gspca main driver: VIDIOC_REQBUFS count=2, type=vid-cap, memory=mmap
> gspca main 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=118784
> gspca main driver: timecode=00:00:00 type=0, flags=0x00000000, frames=0, 
> userbits=0x00000000
> gspca main 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=118784
> gspca main driver: timecode=00:00:00 type=0, flags=0x00000000, frames=0, 
> userbits=0x00000000
> gspca main driver: VIDIOC_QUERYBUF 00:00:00.00000000 index=1, type=vid-cap, 
> bytesused=0, flags=0x00000000, field=1, sequence=0, memory=mmap, 
> offset/userptr=0x0001d000, length=118784
> gspca main driver: timecode=00:00:00 type=0, flags=0x00000000, frames=0, 
> userbits=0x00000000
> gspca main driver: VIDIOC_QBUF 00:00:00.00000000 index=0, type=vid-cap, 
> bytesused=0, flags=0x00000002, field=1, sequence=0, memory=mmap, 
> offset/userptr=0xabcdef00, length=16777216
> gspca main driver: timecode=00:00:00 type=0, flags=0x00000000, frames=0, 
> userbits=0x00000000
> gspca main driver: VIDIOC_QUERYBUF 00:00:00.00000000 index=1, type=vid-cap, 
> bytesused=0, flags=0x00000001, field=1, sequence=0, memory=mmap, 
> offset/userptr=0x0001d000, length=118784
> gspca main driver: timecode=00:00:00 type=0, flags=0x00000000, frames=0, 
> userbits=0x00000000
> gspca main driver: VIDIOC_QBUF 00:00:00.00000000 index=1, type=vid-cap, 
> bytesused=0, flags=0x00000002, field=1, sequence=0, memory=mmap, 
> offset/userptr=0xabcdef01, length=16777216
> gspca main driver: timecode=00:00:00 type=0, flags=0x00000000, frames=0, 
> userbits=0x00000000
> gspca main driver: VIDIOC_S_CTRL id=0x980909, value=0
> gspca main driver: VIDIOC_S_CTRL error -22
> gspca main driver: VIDIOC_QUERYCTRL id=0x980900, type=1, name=Brightness, 
> min/max=0/255, step=1, default=127, flags=0x00000000
> gspca main driver: VIDIOC_S_CTRL id=0x980900, value=127
> gspca main driver: VIDIOC_QUERYCTRL id=0x980903, type=1, name=Hue, 
> min/max=-180/180, step=1, default=0, flags=0x00000000
> gspca main driver: VIDIOC_S_CTRL id=0x980903, value=0
> gspca main driver: VIDIOC_QUERYCTRL id=0x980902, type=1, name=Saturation, 
> min/max=0/255, step=1, default=127, flags=0x00000000
> gspca main driver: VIDIOC_S_CTRL id=0x980902, value=127
> gspca main driver: VIDIOC_QUERYCTRL id=0x980901, type=1, name=Contrast, 
> min/max=0/255, step=1, default=127, flags=0x00000000
> gspca main driver: VIDIOC_S_CTRL id=0x980901, value=127
> gspca main driver: VIDIOC_STREAMON type=vid-cap
> sn9c20x: Set 320x240
> gspca main driver: VIDIOC_STREAMOFF type=vid-cap
> gspca main driver: VIDIOC_DQBUF error -22
> gspca main driver: VIDIOC_S_CTRL id=0x980909, value=1
> gspca main driver: VIDIOC_S_CTRL error -22
>
> GWater
>
> Am Dienstag 28 Juli 2009 21:43:48 schrieb Brian Johnson:
>>
>> The last email i've seen from you was the previous one and this thread
>> where you said you would check out the HEAD and report the results. If
>> you've sent others i have not seen them.
>>
>> Did you try turning on debug messages in gspca? you can do so with the
>> debug=0x100 parameter for the gspca_main module. I'd like to see if
>> the v4l ioctl calls look at all normal.
>>
>>
>> On Tue, Jul 28, 2009 at 3:23 PM, Josua Grawitter<[email protected]> 
>> wrote:
>> > Don't you get my mails?
>> >
>> > I've been telling you several times:
>> > I don't get a stream. That's it. No video stream. I have no idea why - the 
>> > old
>> > driver still works fine.
>> >
>> > GWater
>> >
>> >
>> > Am Dienstag 28 Juli 2009 17:52:34 schrieb Brian Johnson:
>> >> Update:
>> >>
>> >> Well the code as of yesterday is finally in Linus' kernel tree so
>> >> 2.6.31 will have support for sn9c20x webcams.
>> >>
>> >> GWater, have you tested the current driver in the v4l-dvb repo yet?
>> >>
>> >> On Mon, Jul 20, 2009 at 10:19 AM, Josua
>> >>
>> >> Grawitter<[email protected]> wrote:
>> >> > Am Sonntag 19 Juli 2009 23:31:06 schrieb Brian Johnson:
>> >> >> Well ts been a little while but i've finally got the gspca patch for
>> >> >> sn9c20x webcams into the main v4l-dvb repository. From what i've been
>> >> >> told this patch should make it into 2.6.31 as well so the next kernel
>> >> >> release should finally have support for sn9c20x webcams. :-)
>> >> >>
>> >> >> The major change to the last patch i had posted here was removing the
>> >> >> debugfs code and replacing it with the v4l2 get and set register
>> >> >> ioctls. For debugging you can now use the v4l2-dbg utility that is
>> >> >> part of the v4l-dvb repository to view and set registers on the
>> >> >> camera.
>> >> >>
>> >> >> Gwater, Have you been able to figure out what exactly was wrong with
>> >> >> your camera under the gspca version?
>> >> >>
>> >> >> Brian Johnson
>> >> >>
>> >> >> ---------- Forwarded message ----------
>> >> >> From: Patch from Brian Johnson <[email protected]>
>> >> >> Date: Sun, Jul 19, 2009 at 4:50 PM
>> >> >> Subject: [hg:v4l-dvb] gspca - sn9c20x: New subdriver for sn9c201 and
>> >> >> sn9c202 bridges.
>> >> >> To: [email protected]
>> >> >> Cc: Brian Johnson <[email protected]>, Jean-Francois Moine
>> >> >> <[email protected]>
>> >> >>
>> >> >>
>> >> >> The patch number 12283 was added via Jean-Francois Moine
>> >> >> <[email protected]> to http://linuxtv.org/hg/v4l-dvb master development
>> >> >> tree.
>> >> >>
>> >> >> Kernel patches in this development tree may be modified to be backward
>> >> >> compatible with older kernels. Compatibility modifications will be
>> >> >> removed before inclusion into the mainstream Kernel
>> >> >>
>> >> >> If anyone has any objections, please let us know by sending a message
>> >> >> to: Linux Media Mailing List <[email protected]>
>> >> >>
>> >> >> ------
>> >> >>
>> >> >> From: Brian Johnson  <[email protected]>
>> >> >> gspca - sn9c20x: New subdriver for sn9c201 and sn9c202 bridges.
>> >> >>
>> >> >>
>> >> >> Priority: high
>> >> >>
>> >> >> Signed-off-by: Brian Johnson <[email protected]>
>> >> >> Signed-off-by: Jean-Francois Moine <[email protected]>
>> >> >>
>> >> >>
>> >> >> ---
>> >> >>
>> >> >>  linux/Documentation/video4linux/gspca.txt |   32
>> >> >>  linux/drivers/media/video/gspca/Kconfig   |   16
>> >> >>  linux/drivers/media/video/gspca/Makefile  |    2
>> >> >>  linux/drivers/media/video/gspca/sn9c20x.c | 2433 
>> >> >> ++++++++++++++++++++++
>> >> >>  linux/include/linux/videodev2.h           |    1
>> >> >>  linux/include/media/v4l2-chip-ident.h     |   12
>> >> >>  6 files changed, 2496 insertions(+)
>> >> >>
>> >> >> <diff discarded since it is too big>
>> >> >>
>> >> >> ---
>> >> >>
>> >> >> Patch is available at:
>> >> >> http://linuxtv.org/hg/v4l-dvb/rev/122d4e155f946e919c0ddf3f730202815559a4
>> >> >>29
>> >> >
>> >> > Great news, I'll checkout their current HEAD and report the results.
>> >> >
>> >> > GWater
>> >>
>> >> >
>> >
>>
>> >>
>>
>

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