Web lists-archives.com

Re: [Spca50x-devs] gspcav1 driver not working







 Hi Tomas Groth,

 I could able to make my web cam work with TI-DAVINCI EMV using
gspcav1-20070508 and spcaview-20061208.

 I use 2.6.20-omap1 kernel.

 I connect TV to display video output, the problem now is, it video window
size is very narrow not able to see full video.

 I tried different size by passing the arguments like below it did not help
 me
  ./spcaview
  ./spcaview -s 176x144 -m 640x480 -n 0
  ./spcaview -s 352x288 -m 640x480 -n 0
 ./spcaview  -s 640x480 -m 640x480 -n 0

The video window will vary horizontally but vertically it will not vary at
all.
I tried running some test application on board just to test SDL library and
tool all seems to be ok..


when it is running it prints

/home/spcaview-20070508/gspca_core.c:[spca5xx_do_ioctl:2348] syncing to
frame 0, grabstate=2
/home/spcaview-20070508/gspca_core.c:[spca5xx_do_ioctl:2348] syncing to
frame 1 grabstate=2


 Please suggest me how i can increase vertical window size...or how to
 approach to solve this problem..Is it spcaview or gspcav1 or Linux video
 driver/v4l1 driver problem????

I have attached dmesg info in text message, Please help me to solve this
problem.. I am not getting any response from spca50x-devs group...


 Thanks in advance
 Manjunath AM




-----Original Message-----
From: Tomas Groth [mailto:tomasgroth@xxxxxxxx]
Sent: Thursday, June 14, 2007 3:09 PM
To: Manjunath A M; spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Spca50x-devs] gspcav1 driver not working



--- Manjunath A M <manjunatham@xxxxxxxxxxxxxxx> skrev:

> Hi,
>
>
> Hi, I am trying to cross compile and use gspcav1-20070508 to our
TI-DAVINCI
> based custom board, below is some details about kernel and module
installed
> and also error message..
>
>
> # uname -r
> 2.6.10_mvl401-davinci_evm
>

You probably need a newer kernel. As the download page says:
"for kernel up from 2.6.11 : gspcav1-20070508.tar.gz
for kernel below 2.6.11: spca5xx version 0.60.00-1:"

cheers,

Tomas



 musb_hdrc and address 2
usb 1-1: new device strings: Mfr=0, Product=0, SerialNumber=0
usb 1-1: uevent
usb 1-1: usb_probe_device
usb 1-1: configuration #1 chosen from 1 choice
usb 1-1: adding 1-1:1.0 (config #1, interface 0)
usb 1-1:1.0: uevent
hub 1-1:1.0: usb_probe_interface
hub 1-1:1.0: usb_probe_interface - got id
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
hub 1-1:1.0: standalone hub
hub 1-1:1.0: ganged power switching
hub 1-1:1.0: global over-current protection
hub 1-1:1.0: TT per port
hub 1-1:1.0: TT requires at most 8 FS bit times (666 ns)
hub 1-1:1.0: power on to power good time: 100ms
hub 1-1:1.0: local power source is good
hub 1-1:1.0: no over-current condition exists
hub 1-1:1.0: enabling power on all ports
hw_ep->wMaxPacketSizeRx = 512 / qh->maxpacket = 1
1_diff=511
hw_ep->wMaxPacketSizeRx = 256 / qh->maxpacket = 1
1_diff=255
hw_ep->wMaxPacketSizeRx = 256 / qh->maxpacket = 1
1_diff=255
 usbdev1.2_ep81: ep_device_release called for usbdev1.2_ep81
drivers/usb/core/inode.c: creating file '002'
hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 1-0:1.0: port 1 enable change, status 00000503
hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0004
hub 1-1:1.0: port 2, status 0101, change 0001, 12 Mb/s
hub 1-1:1.0: debounce: port 2: total 100ms stable 100ms status 0x101
usb 1-1.2: new full speed USB device using musb_hdrc and address 3
hub 1-1:1.0: port 2 not reset yet, waiting 10ms
usb 1-1.2: ep0 maxpacket = 8
usb 1-1.2: default language 0x0409
usb 1-1.2: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1.2: Product: Camera
usb 1-1.2: Manufacturer:         
usb 1-1.2: uevent
usb 1-1.2: usb_probe_device
usb 1-1.2: configuration #1 chosen from 1 choice
usb 1-1.2: adding 1-1.2:1.0 (config #1, interface 0)
usb 1-1.2:1.0: uevent
drivers/usb/core/inode.c: creating file '003'
hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0004
Linux video capture interface: v2.00
/home/manju/tarfiles/gspcav1-01.00.9/gspca_core.c: GSPCA Core driver 01.00.09 load
hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0004
hub 1-1:1.0: port 2, status 0100, change 0001, 12 Mb/s
usb 1-1.2: USB disconnect, address 3
usb 1-1.2: unregistering device
usb 1-1.2: usb_disable_device nuking all URBs
usb 1-1.2: unregistering interface 1-1.2:1.0
 usbdev1.3_ep81: ep_device_release called for usbdev1.3_ep81
usb 1-1.2:1.0: uevent
 usbdev1.3_ep00: ep_device_release called for usbdev1.3_ep00
usb 1-1.2: uevent
hub 1-1:1.0: debounce: port 2: total 100ms stable 100ms status 0x100
hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0004
hub 1-1:1.0: port 2, status 0101, change 0001, 12 Mb/s
hub 1-1:1.0: debounce: port 2: total 100ms stable 100ms status 0x101
usb 1-1.2: new full speed USB device using musb_hdrc and address 4
hub 1-1:1.0: port 2 not reset yet, waiting 10ms
usb 1-1.2: ep0 maxpacket = 8
usb 1-1.2: default language 0x0409
usb 1-1.2: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1.2: Product: Camera
usb 1-1.2: Manufacturer:         
usb 1-1.2: uevent
usb 1-1.2: usb_probe_device
usb 1-1.2: configuration #1 chosen from 1 choice
usb 1-1.2: adding 1-1.2:1.0 (config #1, interface 0)
usb 1-1.2:1.0: uevent
drivers/usb/core/inode.c: creating file '004'
/home/manju/tarfiles/gspcav1-01.00.9/gspca_core.c: GSPCA Core driver 01.00.09 unload
gspca 1-1.2:1.0: usb_probe_interface
gspca 1-1.2:1.0: usb_probe_interface - got id
/home/manju/gspcav1-20070508/gspca_core.c: USB GSPCA camera found.(SPCA561A)
spca50x->funct= bf01facc<6>/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_probe:4156] Camera type S561 
/home/manju/gspcav1-20070508/gspca_core.c: [spca50x_configure:2643] video_register_device succeeded
/home/manju/gspcav1-20070508/Sunplus/spca561.h: [spca561_config:742] Read from GLOBAL: USB Vendor ID 0x046d
/home/manju/gspcav1-20070508/Sunplus/spca561.h: [spca561_config:747] Read from GLOBAL: USB Product ID 0x0928
 usbdev1.4_ep81: ep_device_release called for usbdev1.4_ep81
uses spca5xx_getDefaultMode
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_getcapability:1237] maxw 352 maxh 288 minw 176 minh 144
/home/manju/gspcav1-20070508/gspca_core.c: [spca50x_configure:2660] Spca5xx Configure done !!
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_probe:4185] setting video device = c6463c00, spca50x = c679c000
usbcore: registered new interface driver gspca
/home/manju/gspcav1-20070508/gspca_core.c: gspca driver 01.00.18 registered
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_open:1977] opening
/home/manju/gspcav1-20070508/Sunplus/spca561.h: [spca561_init:497] Find spca561 USB Product ID 928
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_setMode:1406] Found code 3 method 0
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_setMode:1408] Soft Win width height 352 x 288
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_setMode:1410] Hard Win width height 352 x 288
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_set_light_freq:1940] Sensor currently not support light frequency banding filters.
/home/manju/gspcav1-20070508/gspca_core.c: [gspca_set_isoc_ep:910] ISO EndPoint found 0x81 AlternateSet 7
 usbdev1.4_ep81: ep_device_release called for usbdev1.4_ep81
pkt siz is 1023hw_ep->wMaxPacketSizeRx = 512 / qh->maxpacket = 1023
1_diff=-511
hw_ep->wMaxPacketSizeRx = 256 / qh->maxpacket = 1023
1_diff=-767
ENOSPC is here nBestEnd is -1
/home/manju/gspcav1-20070508/gspca_core.c: [gspca_set_isoc_ep:910] ISO EndPoint found 0x81 AlternateSet 6
 usbdev1.4_ep81: ep_device_release called for usbdev1.4_ep81
pkt siz is 896hw_ep->wMaxPacketSizeRx = 512 / qh->maxpacket = 896
1_diff=-384
hw_ep->wMaxPacketSizeRx = 256 / qh->maxpacket = 896
1_diff=-640
ENOSPC is here nBestEnd is -1
/home/manju/gspcav1-20070508/gspca_core.c: [gspca_set_isoc_ep:910] ISO EndPoint found 0x81 AlternateSet 5
 usbdev1.4_ep81: ep_device_release called for usbdev1.4_ep81
pkt siz is 768hw_ep->wMaxPacketSizeRx = 512 / qh->maxpacket = 768
1_diff=-256
hw_ep->wMaxPacketSizeRx = 256 / qh->maxpacket = 768
1_diff=-512
ENOSPC is here nBestEnd is -1
/home/manju/gspcav1-20070508/gspca_core.c: [gspca_set_isoc_ep:910] ISO EndPoint found 0x81 AlternateSet 4
 usbdev1.4_ep81: ep_device_release called for usbdev1.4_ep81
pkt siz is 640hw_ep->wMaxPacketSizeRx = 512 / qh->maxpacket = 640
1_diff=-128
hw_ep->wMaxPacketSizeRx = 256 / qh->maxpacket = 640
1_diff=-384
ENOSPC is here nBestEnd is -1
/home/manju/gspcav1-20070508/gspca_core.c: [gspca_set_isoc_ep:910] ISO EndPoint found 0x81 AlternateSet 3
 usbdev1.4_ep81: ep_device_release called for usbdev1.4_ep81
pkt siz is 512hw_ep->wMaxPacketSizeRx = 512 / qh->maxpacket = 512
1_diff=0
hw_ep->wMaxPacketSizeRx = 256 / qh->maxpacket = 512
1_diff=-256
ENOSPC is here nBestEnd is -1
/home/manju/gspcav1-20070508/gspca_core.c: [gspca_set_isoc_ep:910] ISO EndPoint found 0x81 AlternateSet 2
 usbdev1.4_ep81: ep_device_release called for usbdev1.4_ep81
pkt siz is 880hw_ep->wMaxPacketSizeRx = 512 / qh->maxpacket = 880
1_diff=-368
hw_ep->wMaxPacketSizeRx = 256 / qh->maxpacket = 880
1_diff=-624
ENOSPC is here nBestEnd is -1
/home/manju/gspcav1-20070508/gspca_core.c: [gspca_set_isoc_ep:910] ISO EndPoint found 0x81 AlternateSet 1
 usbdev1.4_ep81: ep_device_release called for usbdev1.4_ep81
pkt siz is 128hw_ep->wMaxPacketSizeRx = 512 / qh->maxpacket = 128
1_diff=384
hw_ep->wMaxPacketSizeRx = 256 / qh->maxpacket = 128
1_diff=128
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_open:2023] Open done
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2083] do_IOCtl: 0x803C7601
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2090] VIDIOCGCAP c615de68 :
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2083] do_IOCtl: 0xC0307602
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2083] do_IOCtl: 0x40307603
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2083] do_IOCtl: 0xC0307602
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2083] do_IOCtl: 0x800C76C1
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2083] do_IOCtl: 0x80887614
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2268] VIDIOCGMBUF: c048c480 
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2083] do_IOCtl: 0x40107613
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2281] CMCAPTURE
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2283] CM frame: 0, size: 320x240, format: 15
 >> 320 CIF <<
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_restartMode:1445] Mode changing to 320,240
 usbdev1.4_ep81: ep_device_release called for usbdev1.4_ep81
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_setMode:1406] Found code 1 method 0
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_setMode:1408] Soft Win width height 320 x 240
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_setMode:1410] Hard Win width height 320 x 240
/home/manju/gspcav1-20070508/gspca_core.c: [gspca_set_isoc_ep:910] ISO EndPoint found 0x81 AlternateSet 7
 usbdev1.4_ep81: ep_device_release called for usbdev1.4_ep81
pkt siz is 1023hw_ep->wMaxPacketSizeRx = 512 / qh->maxpacket = 1023
1_diff=-511
hw_ep->wMaxPacketSizeRx = 256 / qh->maxpacket = 1023
1_diff=-767
ENOSPC is here nBestEnd is -1
/home/manju/gspcav1-20070508/gspca_core.c: [gspca_set_isoc_ep:910] ISO EndPoint found 0x81 AlternateSet 6
 usbdev1.4_ep81: ep_device_release called for usbdev1.4_ep81
pkt siz is 896hw_ep->wMaxPacketSizeRx = 512 / qh->maxpacket = 896
1_diff=-384
hw_ep->wMaxPacketSizeRx = 256 / qh->maxpacket = 896
1_diff=-640
ENOSPC is here nBestEnd is -1
/home/manju/gspcav1-20070508/gspca_core.c: [gspca_set_isoc_ep:910] ISO EndPoint found 0x81 AlternateSet 5
 usbdev1.4_ep81: ep_device_release called for usbdev1.4_ep81
pkt siz is 768hw_ep->wMaxPacketSizeRx = 512 / qh->maxpacket = 768
1_diff=-256
hw_ep->wMaxPacketSizeRx = 256 / qh->maxpacket = 768
1_diff=-512
ENOSPC is here nBestEnd is -1
/home/manju/gspcav1-20070508/gspca_core.c: [gspca_set_isoc_ep:910] ISO EndPoint found 0x81 AlternateSet 4
 usbdev1.4_ep81: ep_device_release called for usbdev1.4_ep81
pkt siz is 640hw_ep->wMaxPacketSizeRx = 512 / qh->maxpacket = 640
1_diff=-128
hw_ep->wMaxPacketSizeRx = 256 / qh->maxpacket = 640
1_diff=-384
ENOSPC is here nBestEnd is -1
/home/manju/gspcav1-20070508/gspca_core.c: [gspca_set_isoc_ep:910] ISO EndPoint found 0x81 AlternateSet 3
 usbdev1.4_ep81: ep_device_release called for usbdev1.4_ep81
pkt siz is 512hw_ep->wMaxPacketSizeRx = 512 / qh->maxpacket = 512
1_diff=0
hw_ep->wMaxPacketSizeRx = 256 / qh->maxpacket = 512
1_diff=-256
ENOSPC is here nBestEnd is -1
/home/manju/gspcav1-20070508/gspca_core.c: [gspca_set_isoc_ep:910] ISO EndPoint found 0x81 AlternateSet 2
 usbdev1.4_ep81: ep_device_release called for usbdev1.4_ep81
pkt siz is 880hw_ep->wMaxPacketSizeRx = 512 / qh->maxpacket = 880
1_diff=-368
hw_ep->wMaxPacketSizeRx = 256 / qh->maxpacket = 880
1_diff=-624
ENOSPC is here nBestEnd is -1
/home/manju/gspcav1-20070508/gspca_core.c: [gspca_set_isoc_ep:910] ISO EndPoint found 0x81 AlternateSet 1
 usbdev1.4_ep81: ep_device_release called for usbdev1.4_ep81
pkt siz is 128hw_ep->wMaxPacketSizeRx = 512 / qh->maxpacket = 128
1_diff=384
hw_ep->wMaxPacketSizeRx = 256 / qh->maxpacket = 128
1_diff=128
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2083] do_IOCtl: 0x40107613
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2281] CMCAPTURE
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2283] CM frame: 1, size: 320x240, format: 15
 >> 320 CIF <<
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2083] do_IOCtl: 0x800E7606
/home/manju/gspcav1-20070508/Sunplus/spca561.h: [spca561_getcontrast:726] Get constrast 0x8335 0x0003
/home/manju/gspcav1-20070508/gspca_core.c: [spca50x_move_data:1670] Decode frame last 2170
/home/manju/gspcav1-20070508/gspca_core.c: [spca50x_next_frame:1538] Frame 0 State 1
/home/manju/gspcav1-20070508/gspca_core.c: [spca50x_next_frame:1547] Picture setting change Pass to decoding   
/home/manju/gspcav1-20070508/gspca_core.c: [outpict_do_tasklet:1569] Tasklet ask spcadecoder hdrwidth 320 hdrheight 240 method 0 
/home/manju/gspcav1-20070508/gspca_core.c: [outpict_do_tasklet:1576] Decode framestate return 4
/home/manju/gspcav1-20070508/gspca_core.c: [spca50x_move_data:1670] Decode frame last 100
/home/manju/gspcav1-20070508/gspca_core.c: [spca50x_next_frame:1538] Frame 1 State 2
/home/manju/gspcav1-20070508/gspca_core.c: [outpict_do_tasklet:1569] Tasklet ask spcadecoder hdrwidth 320 hdrheight 240 method 0 
/home/manju/gspcav1-20070508/gspca_core.c: [outpict_do_tasklet:1576] Decode framestate return 4
/home/manju/gspcav1-20070508/gspca_core.c: [spca50x_move_data:1670] Decode frame last 100
/home/manju/gspcav1-20070508/gspca_core.c: [spca50x_next_frame:1538] Frame 0 State 2
/home/manju/gspcav1-20070508/gspca_core.c: [outpict_do_tasklet:1569] Tasklet ask spcadecoder hdrwidth 320 hdrheight 240 method 0 
/home/manju/gspcav1-20070508/gspca_core.c: [outpict_do_tasklet:1576] Decode framestate return 4
/home/manju/gspcav1-20070508/gspca_core.c: [spca50x_move_data:1670] Decode frame last 120
/home/manju/gspcav1-20070508/gspca_core.c: [spca50x_next_frame:1538] Frame 1 State 2
/home/manju/gspcav1-20070508/gspca_core.c: [outpict_do_tasklet:1569] Tasklet ask spcadecoder hdrwidth 320 hdrheight 240 method 0 
/home/manju/gspcav1-20070508/gspca_core.c: [outpict_do_tasklet:1576] Decode framestate return 4
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2083] do_IOCtl: 0x400E7607
 >> 320 CIF <<
/home/manju/gspcav1-20070508/gspca_core.c: [spca50x_move_data:1670] Decode frame last 100
/home/manju/gspcav1-20070508/gspca_core.c: [spca50x_next_frame:1538] Frame 0 State 2
/home/manju/gspcav1-20070508/gspca_core.c: [outpict_do_tasklet:1569] Tasklet ask spcadecoder hdrwidth 320 hdrheight 240 method 0 
/home/manju/gspcav1-20070508/gspca_core.c: [outpict_do_tasklet:1576] Decode framestate return 4
/home/manju/gspcav1-20070508/gspca_core.c: [spca50x_move_data:1670] Decode frame last 140
/home/manju/gspcav1-20070508/gspca_core.c: [spca50x_next_frame:1538] Frame 1 State 2
/home/manju/gspcav1-20070508/gspca_core.c: [outpict_do_tasklet:1569] Tasklet ask spcadecoder hdrwidth 320 hdrheight 240 method 0 
/home/manju/gspcav1-20070508/gspca_core.c: [outpict_do_tasklet:1576] Decode framestate return 4
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2083] do_IOCtl: 0x40047612
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2365] syncing to frame 0, grabstate = 2
/home/manju/gspcav1-20070508/gspca_core.c: [spca50x_move_data:1670] Decode frame last 130
/home/manju/gspcav1-20070508/gspca_core.c: [spca50x_next_frame:1538] Frame 0 State 2
/home/manju/gspcav1-20070508/gspca_core.c: [outpict_do_tasklet:1569] Tasklet ask spcadecoder hdrwidth 320 hdrheight 240 method 0 
/home/manju/gspcav1-20070508/gspca_core.c: [outpict_do_tasklet:1576] Decode framestate return 4
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2083] do_IOCtl: 0x40107613
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2281] CMCAPTURE
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_do_ioctl:2283] CM frame: 0, size: 320x240, format: 15
 >> 320 CIF <<
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_close:2040] spca50x_close
 usbdev1.4_ep81: ep_device_release called for usbdev1.4_ep81
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_dealloc:1770] entered dealloc
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_dealloc:1783] buffer memory deallocated
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_dealloc:1786] leaving dealloc
/home/manju/gspcav1-20070508/gspca_core.c: [spca5xx_close:2057] Release ressources done
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs