From: Stefano Sabatini <stefano.sabatini-lala@poste.it>
To: video4linux-list Mailing List <video4linux-list@redhat.com>
Subject: gspca, linux 2.6.26 and ioctl(VIDIOC_QUERYCAP) returning -1, what's wrong?
Date: Wed, 24 Dec 2008 17:00:38 +0100 [thread overview]
Message-ID: <20081224160038.GD475@geppetto> (raw)
Hi all,
I'm using linux 2.6.26 and the Debian gspca module, and I'm getting
ioctl(VIDIOC_QUERYCAP) return -1 after the device is opened.
Do you have any hint to share?
Here there are some relevant informations:
stefano@geppetto ~/s/ffmpeg> uname -a
Linux geppetto 2.6.26-1-686 #1 SMP Sat Oct 18 16:22:25 UTC 2008 i686 GNU/Linux
stefano@geppetto ~/s/ffmpeg> sudo modinfo gspca
filename: /lib/modules/2.6.26-1-686/kernel/drivers/usb/media/gspca.ko
author: Michel Xhaard <mxhaard@users.sourceforge.net> based on spca50x driver by Joel Crisp <cydergoth@users.sourceforge.net>,ov511 driver by Mark McClelland <mwm@i.am>
description: GSPCA/SPCA5XX USB Camera Driver
license: GPL
vermagic: 2.6.26-1-686 SMP mod_unload modversions 686
depends: usbcore,videodev
alias: usb:v093Ap2463d*dc*dsc*dp*ic*isc*ip*
[...]
parm: force_gamma_id:Forced assigning ID of contrast settings (0=default,1,2,3) Zc03xx only (int)
parm: force_sensor_id:Forced assigning ID sensor (Zc03xx only). Dangerous, only for experts !!! (int)
parm: lightfreq:Light frequency banding filter. Set to 50 or 60 Hz, or 0 for NoFlicker (default=50) Zc03xx only (int)
parm: usbgrabber:Is a usb grabber 0x0733:0x0430 ? (default 1) (int)
parm: compress:Turn on/off compression (not functional yet) (int)
parm: GGreen:Gain Green setting range 0 to 512 /256 (int)
parm: GBlue:Gain Blue setting range 0 to 512 /256 (int)
parm: GRed:Gain Red setting range 0 to 512 /256 (int)
parm: OffGreen:OffGreen setting range -128 to 128 (int)
parm: OffBlue:OffBlue setting range -128 to 128 (int)
parm: OffRed:OffRed setting range -128 to 128 (int)
parm: gamma:gamma setting range 0 to 7 3-> gamma=1 (int)
parm: force_rgb:Read RGB instead of BGR (int)
parm: debug:Debug level: 0=none, 1=init/detection, 2=warning, 3=config/control, 4=function call, 5=max (int)
parm: autoexpo:Enable/Disable auto exposure (default=1: enabled) (PC-CAM 600/Zc03xx/spca561a/Etoms Only !!!) (int)
stefano@geppetto ~/s/ffmpeg> dmesg
[...]
[38586.942147] Linux video capture interface: v2.00
[38586.945359] gspca: USB GSPCA camera found.(ZC3XX)
[38586.945359] gspca: [spca5xx_probe:4275] Camera type JPEG
[38587.582486] gspca: [zc3xx_config:669] Find Sensor HV7131R(c)
[38587.586948] gspca: [spca5xx_getcapability:1249] maxw 640 maxh 480 minw 160 minh 120
[38587.586948] usbcore: registered new interface driver gspca
[38587.586948] gspca: gspca driver 01.00.20 registered
[38611.561635] gspca: [spca5xx_set_light_freq:1932] Sensor currently not support light frequency banding filters.
[38611.561740] gspca: [gspca_set_isoc_ep:945] ISO EndPoint found 0x81 AlternateSet 7
[38627.563632] gspca: [spca5xx_set_light_freq:1932] Sensor currently not support light frequency banding filters.
[38627.563726] gspca: [gspca_set_isoc_ep:945] ISO EndPoint found 0x81 AlternateSet 7
[38629.217385] gspca: [spca5xx_do_ioctl:2124] Bridge ZC301-2
[38634.087208] gspca: [spca5xx_set_light_freq:1932] Sensor currently not support light frequency banding filters.
[38634.087208] gspca: [gspca_set_isoc_ep:945] ISO EndPoint found 0x81 AlternateSet 7
The failing application is ffplay (ffplay -s 320x240 -f video4linux2
/dev/video0) if that matters.
Regards.
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
next reply other threads:[~2008-12-24 16:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-24 16:00 Stefano Sabatini [this message]
2008-12-24 16:47 ` gspca, linux 2.6.26 and ioctl(VIDIOC_QUERYCAP) returning -1, what's wrong? Jean-Francois Moine
2008-12-24 17:40 ` Stefano Sabatini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081224160038.GD475@geppetto \
--to=stefano.sabatini-lala@poste.it \
--cc=video4linux-list@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox