Web lists-archives.com

Re: [Spca50x-devs] [New Driver]: usbvideo2 webcam core + pac207 driver using it.




>  This is the promised split version of the pac207 driver I've been working on, I
>  would like to ask everyone to take a good look at this, as I plan to base a
>  number of other (gspca derived) v4l2 drivers on this same core.

It simply doesn't work here (tried both the monolithic and the split version).
Here's some relevant info, please ask if you need something further.

Best,
R.

-------------8<---------------------------8<--------------

% uname -r
2.6.24.3-rae

% lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 005: ID 046d:c016 Logitech, Inc. M-UV69a Optical Wheel Mouse
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 005: ID 093a:2460 Pixart Imaging, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

--- gspca 1.0.0.20 module (working) ---

# modprobe gspca
% dmesg | tail
[  782.925512] /usr/src/modules/gspca/gspca_core.c: USB GSPCA camera
found. (PAC207)
[  782.925519] /usr/src/modules/gspca/gspca_core.c:
[spca5xx_probe:4275] Camera type GBRG
[  782.928832] /usr/src/modules/gspca/gspca_core.c:
[spca5xx_getcapability:1249] maxw 352 maxh 288 minw 160 minh 120
[  782.928892] usbcore: registered new interface driver gspca
[  782.928896] /usr/src/modules/gspca/gspca_core.c: gspca driver
01.00.20 registered
[  783.183325] /usr/src/modules/gspca/gspca_core.c:
[spca5xx_set_light_freq:1932] Sensor currently not support light
frequency banding filters.
[  783.183342] /usr/src/modules/gspca/gspca_core.c:
[gspca_set_isoc_ep:945] ISO EndPoint found 0x85 AlternateSet 8

% v4l-conf
v4l-conf: using X11 display :0.0
dga: version 2.0
mode: 1024x768, depth=24, bpp=32, bpl=8192, base=0xc1000000
/dev/video0 [v4l2]: ioctl VIDIOC_QUERYCAP: Invalid argument
/dev/video0 [v4l]: no overlay support

% v4l-info

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
	name                    : "Qtec Webcam 100"
	type                    : 0x1 [CAPTURE]
	channels                : 1
	audios                  : 0
	maxwidth                : 352
	maxheight               : 288
	minwidth                : 160
	minheight               : 120

channels
    VIDIOCGCHAN(0)
	channel                 : 0
	name                    : "PAC207BCA"
	tuners                  : 0
	flags                   : 0x0 []
	type                    : CAMERA
	norm                    : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
    VIDIOCGPICT
	brightness              : 10496
	hue                     : 0
	colour                  : 0
	contrast                : 30720
	whiteness               : 0
	depth                   : 24
	palette                 : RGB24

buffer
    VIDIOCGFBUF
	base                    : (nil)
	height                  : 0
	width                   : 0
	depth                   : 0
	bytesperline            : 0

window
    VIDIOCGWIN
	x                       : 0
	y                       : 0
	width                   : 176
	height                  : 144
	chromakey               : 0
	flags                   : 0

% xawtv
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.24.3-rae)
xinerama 0: 1024x768+0+0
/dev/video0 [v4l]: no overlay support
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string
"-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=7): Invalid argument
ioctl: VIDIOCMCAPTURE(frame=0;height=264;width=352;format=5): Invalid argument
{{works}}

% camorama
{{works}}

--- your pac207 module ---

# insmod pac207.ko debug=3
% dmesg | tail
[ 1494.341549] usb 2-1: Pixart Sensor ID 0x27 Chips ID 0x08 !!
[ 1494.341554]
[ 1494.347506] usb 2-1: Pixart PAC207BCA Image Processor and Control
Chip detected (vid/pid 0x093A:0x2460)
[ 1494.348668] usb 2-1: V4L2 device registered as /dev/video0
[ 1494.348923] usbcore: registered new interface driver pac207

% v4l-conf
v4l-conf: using X11 display :0.0
dga: version 2.0
mode: 1024x768, depth=24, bpp=32, bpl=8192, base=0xc1000000
/dev/video0 [v4l2]: no overlay support

% v4l-info
### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
	driver                  : "pac207"
	card                    : "Pixart PAC207BCA USB Camera"
	bus_info                : "usb-0000:00:1d.1-1"
	version                 : 2.6.24
	capabilities            : 0x5000001 [VIDEO_CAPTURE,READWRITE,STREAMING]

standards

inputs
    VIDIOC_ENUMINPUT(0)
	index                   : 0
	name                    : "Camera"
	type                    : CAMERA
	audioset                : 0
	tuner                   : 0
	std                     : 0x0 []
	status                  : 0x0 []

video capture
    VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
	index                   : 0
	type                    : VIDEO_CAPTURE
	flags                   : 0
	description             : "bayer rgb"
	pixelformat             : 0x31384142 [BA81]
    VIDIOC_G_FMT(VIDEO_CAPTURE)
	type                    : VIDEO_CAPTURE
	fmt.pix.width           : 352
	fmt.pix.height          : 288
	fmt.pix.pixelformat     : 0x31384142 [BA81]
	fmt.pix.field           : NONE
	fmt.pix.bytesperline    : 0
	fmt.pix.sizeimage       : 101376
	fmt.pix.colorspace      : SRGB
	fmt.pix.priv            : 8

controls
    VIDIOC_QUERYCTRL(BASE+0)
	id                      : 9963776
	type                    : INTEGER
	name                    : "brightness"
	minimum                 : 0
	maximum                 : 255
	step                    : 1
	default_value           : 4
	flags                   : 0

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
	name                    : "Pixart PAC207BCA USB Camera"
	type                    : 0x1 [CAPTURE]
	channels                : 1
	audios                  : 0
	maxwidth                : 352
	maxheight               : 288
	minwidth                : 48
	minheight               : 32

channels
    VIDIOCGCHAN(0)
	channel                 : 0
	name                    : "Camera"
	tuners                  : 0
	flags                   : 0x0 []
	type                    : CAMERA
	norm                    : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
    VIDIOCGPICT
	brightness              : 1028
	hue                     : 0
	colour                  : 0
	contrast                : 0
	whiteness               : 0
	depth                   : 0
	palette                 : unknown

buffer
ioctl VIDIOCGFBUF: Invalid argument

window
    VIDIOCGWIN
	x                       : 0
	y                       : 0
	width                   : 352
	height                  : 288
	chromakey               : 0
	flags                   : 0

% xawtv
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.24.3-rae)
xinerama 0: 1024x768+0+0
/dev/video0 [v4l2]: no overlay support
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string
"-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
ioctl: VIDIOC_S_STD(std=0x0 []): Invalid argument
no way to get: 384x288 32 bit TrueColor (LE: bgr-)
{{ shows only a black window }}

% camorama
{{cannot open /dev/video0 }}

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs