You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PS2 Eyetoy camera is not working after commit 44dc4f093c9ec075e6704965665311a94f6371aa #454
This commit causes the Playstation 2 Eyetoy camera to not work. I have no idea if it affects any other USB cameras, but the error I am receiving from motion is attached to the bottom. Any commit before this works fine.
[1] cap.driver: "ov519"
[1] cap.card: "Logitech EyeToy USB Camera"
[1] cap.bus_info: "usb-bcm2708_usb-1.3"
[1] cap.capabilities=0x85000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Test palette JPEG (320x240)
[1] Using palette JPEG (320x240) bytesperlines 320 sizeimage 29390 colorspace 00000007
[1] found control 0x00980900, "Brightness", range 0,255
[1] "Brightness", default 127, current 127
[1] found control 0x00980902, "Saturation", range 0,255
[1] "Saturation", default 127, current 127
[1] mmap information:
[1] frames=4
[1] 0 length=32768
[1] 1 length=32768
[1] 2 length=32768
[1] 3 length=32768
[1] Using V4L2
Unsupported marker type 0xf5
[1] Video device fatal error - Closing video device
[1] Closing video device /dev/video0
This is a known issue with fiq_split. The device is a USB1.1 camera which requires isochronous split transactions with multiple split-completes. The current implementation does not allow for more than 1 split-complete in a USB frame therefore only max 188 bytes are transferred per 1ms.
The same principle applies for a video stream instead of audio recording stream, but the much greater bandwidth of a video stream (even if JPEG-encoded) produces an unreadable output.
A possible workaround is to disable fiq_split with dwc_otg.fiq_split_enable=0 in /boot/cmdline.txt but the transfer will still be unreliable as generic interrupt latency will mess up the transaction.
I'm currently trying 1d78a22d866b69454c062443db9d4b42f00f0215
mainly to see how high speed isoch' transfers are progressing, but as I have an Eye Toy in my bits box, I thought I'd try it.
If you can put up with a random frame glitch now & then, it does actually produce a fair picture (640*480) using guvcviewer (already in Raspbian distribution), so long as it's plugged directly into a USB port on model B. I'm currently using a 7 port hub which works fine at 2.0 speeds, but has only a single TT. ET's frames just break up if I send through that:
[ 277.432873] gspca_main: ISOC data error: [14] len=0, status=-71
[ 277.432885] gspca_main: ISOC data error: [15] len=0, status=-71
[ 277.432897] gspca_main: ISOC data error: [16] len=0, status=-71
[ 277.432909] gspca_main: ISOC data error: [17] len=0, status=-71
[ 277.432921] gspca_main: ISOC data error: [18] len=0, status=-71
[ 277.432933] gspca_main: ISOC data error: [19] len=0, status=-71
[ 277.432945] gspca_main: ISOC data error: [20] len=0, status=-71
[ 277.432967] gspca_main: ISOC data error: [21] len=0, status=-71
[ 277.432981] gspca_main: ISOC data error: [22] len=0, status=-71
[ 277.432993] gspca_main: ISOC data error: [23] len=0, status=-71
[ 277.433005] gspca_main: ISOC data error: [24] len=0, status=-71
[ 277.433017] gspca_main: ISOC data error: [25] len=0, status=-71
[ 277.433030] gspca_main: ISOC data error: [26] len=0, status=-71
[ 277.433042] gspca_main: ISOC data error: [27] len=0, status=-71
[ 277.433054] gspca_main: ISOC data error: [28] len=0, status=-71
[ 277.433066] gspca_main: ISOC data error: [29] len=0, status=-71
[ 277.433088] gspca_main: ISOC data error: [30] len=0, status=-71
ad nauseum....
[ 277.433102] gspca_main: ISOC data error: [31] len=0, status=-71
[ 277.440855] usb 1-1.3.4.3: USB disconnect, device number 8
[ 376.274359] usb 1-1.3.4.3: new full-speed USB device number 10 using dwc_otg
[ 376.397815] usb 1-1.3.4.3: New USB device found, idVendor=054c, idProduct=0155
[ 376.397839] usb 1-1.3.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 376.397852] usb 1-1.3.4.3: Product: EyeToy USB camera Namtai
[ 376.397863] usb 1-1.3.4.3: Manufacturer: Sony corporation
[ 376.401250] gspca_main: ov519-2.14.0 probing 054c:0155
[ 376.624827] input: ov519 as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.3/input/input3
[ 405.202024] usb 1-1.3.4.3: USB disconnect, device number 10
[ 445.995172] smsc95xx 1-1.1:1.0 eth0: unregister 'smsc95xx' usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet
[ 445.995243] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 456.406475] usb 1-1.3.4.3: new full-speed USB device number 11 using dwc_otg
& when plugged into B directly:
video device: /dev/video0
Init. EyeToy USB camera Namtai (location: usb-bcm2708_usb-1.2)
{ pixelformat = 'JPEG', description = 'JPEG' }
{ discrete: width = 320, height = 240 }
Time interval between frame:
{ discrete: width = 640, height = 480 }
Time interval between frame:
{ pixelformat = 'RGB3', description = 'RGB3' }
{ discrete: width = 320, height = 240 }
Time interval between frame:
{ discrete: width = 640, height = 480 }
Time interval between frame:
{ pixelformat = 'BGR3', description = 'BGR3' }
{ discrete: width = 320, height = 240 }
Time interval between frame:
{ discrete: width = 640, height = 480 }
Time interval between frame:
{ pixelformat = 'YU12', description = 'YU12' }
{ discrete: width = 320, height = 240 }
Time interval between frame:
{ discrete: width = 640, height = 480 }
Time interval between frame:
{ pixelformat = 'YV12', description = 'YV12' }
{ discrete: width = 320, height = 240 }
Time interval between frame:
{ discrete: width = 640, height = 480 }
Time interval between frame:
vid:054c
pid:0155
driver:ov519
checking format: 1195724874
VIDIOC_G_COMP:: Inappropriate ioctl for device
fps is set to 0/0
drawing controls
control type: 0x00000006 not supported
fps is set to 1/1
Checking video mode 640x480@32bpp : OK
I had tried this again recently, but there was still some bottom-half picture tearing every few seconds.
Happily no tearing now, & between 5 & 7 fps, very good! I generally test using "guvcview", invoked from cli so I can see errors, normally hundreds, but now none!
Also 7 fps on fw 94e1.......30d38, but black screen only. With both firmwares, I left the 3 new cmdline FIQ options in, with a mask of 3.
I have a few more older webcams to check, so I'll update the wiki if any now work that previously didn't.
I was hoping to see just how the new FIQ handler copes with my hd 290e tuner, but I still haven't tracked down why in the last 3 or 4 kernels, it's demodulator won't initialise because of a gpio error. I've just checked kernel's bugzilla & strangely there's no reports, yet there were several for the previous initialisation error which other kernel users noticed after I reported it, so I'm beginning to wonder if it's RPi specific.
Anyway, very good results so far with the new handler. Next to test some USB audio devices.
I abbreviated the string to avoid any transposition errors from the other machine I was posting from. It's the contents of
.firmware_revision in the /boot folder, but I can't find it here on Github, so what's its relationship?
Here's the full string: "94e1b8014dfa69701d0432088acb11ae01130d38"
Eyetoy works fine on my desk with BRANCH=next firmware.
@tvjon the commit producing the black screen does not include the fiq_fsm rewrite. This behaviour is typical of gspca when it gets no data - it just reports a black frame.
Activity
P33M commentedon Dec 3, 2013
This is a known issue with fiq_split. The device is a USB1.1 camera which requires isochronous split transactions with multiple split-completes. The current implementation does not allow for more than 1 split-complete in a USB frame therefore only max 188 bytes are transferred per 1ms.
Refer to this comment: raspberrypi/firmware#197 (comment)
The same principle applies for a video stream instead of audio recording stream, but the much greater bandwidth of a video stream (even if JPEG-encoded) produces an unreadable output.
A possible workaround is to disable fiq_split with dwc_otg.fiq_split_enable=0 in /boot/cmdline.txt but the transfer will still be unreliable as generic interrupt latency will mess up the transaction.
tvjon commentedon Jan 13, 2014
I'm currently trying 1d78a22d866b69454c062443db9d4b42f00f0215
mainly to see how high speed isoch' transfers are progressing, but as I have an Eye Toy in my bits box, I thought I'd try it.
If you can put up with a random frame glitch now & then, it does actually produce a fair picture (640*480) using guvcviewer (already in Raspbian distribution), so long as it's plugged directly into a USB port on model B. I'm currently using a 7 port hub which works fine at 2.0 speeds, but has only a single TT. ET's frames just break up if I send through that:
[ 277.432873] gspca_main: ISOC data error: [14] len=0, status=-71
[ 277.432885] gspca_main: ISOC data error: [15] len=0, status=-71
[ 277.432897] gspca_main: ISOC data error: [16] len=0, status=-71
[ 277.432909] gspca_main: ISOC data error: [17] len=0, status=-71
[ 277.432921] gspca_main: ISOC data error: [18] len=0, status=-71
[ 277.432933] gspca_main: ISOC data error: [19] len=0, status=-71
[ 277.432945] gspca_main: ISOC data error: [20] len=0, status=-71
[ 277.432967] gspca_main: ISOC data error: [21] len=0, status=-71
[ 277.432981] gspca_main: ISOC data error: [22] len=0, status=-71
[ 277.432993] gspca_main: ISOC data error: [23] len=0, status=-71
[ 277.433005] gspca_main: ISOC data error: [24] len=0, status=-71
[ 277.433017] gspca_main: ISOC data error: [25] len=0, status=-71
[ 277.433030] gspca_main: ISOC data error: [26] len=0, status=-71
[ 277.433042] gspca_main: ISOC data error: [27] len=0, status=-71
[ 277.433054] gspca_main: ISOC data error: [28] len=0, status=-71
[ 277.433066] gspca_main: ISOC data error: [29] len=0, status=-71
[ 277.433088] gspca_main: ISOC data error: [30] len=0, status=-71
ad nauseum....
[ 277.433102] gspca_main: ISOC data error: [31] len=0, status=-71
[ 277.440855] usb 1-1.3.4.3: USB disconnect, device number 8
[ 376.274359] usb 1-1.3.4.3: new full-speed USB device number 10 using dwc_otg
[ 376.397815] usb 1-1.3.4.3: New USB device found, idVendor=054c, idProduct=0155
[ 376.397839] usb 1-1.3.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 376.397852] usb 1-1.3.4.3: Product: EyeToy USB camera Namtai
[ 376.397863] usb 1-1.3.4.3: Manufacturer: Sony corporation
[ 376.401250] gspca_main: ov519-2.14.0 probing 054c:0155
[ 376.624827] input: ov519 as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.3/input/input3
[ 405.202024] usb 1-1.3.4.3: USB disconnect, device number 10
[ 445.995172] smsc95xx 1-1.1:1.0 eth0: unregister 'smsc95xx' usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet
[ 445.995243] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 456.406475] usb 1-1.3.4.3: new full-speed USB device number 11 using dwc_otg
& when plugged into B directly:
video device: /dev/video0
Init. EyeToy USB camera Namtai (location: usb-bcm2708_usb-1.2)
{ pixelformat = 'JPEG', description = 'JPEG' }
{ discrete: width = 320, height = 240 }
Time interval between frame:
{ discrete: width = 640, height = 480 }
Time interval between frame:
{ pixelformat = 'RGB3', description = 'RGB3' }
{ discrete: width = 320, height = 240 }
Time interval between frame:
{ discrete: width = 640, height = 480 }
Time interval between frame:
{ pixelformat = 'BGR3', description = 'BGR3' }
{ discrete: width = 320, height = 240 }
Time interval between frame:
{ discrete: width = 640, height = 480 }
Time interval between frame:
{ pixelformat = 'YU12', description = 'YU12' }
{ discrete: width = 320, height = 240 }
Time interval between frame:
{ discrete: width = 640, height = 480 }
Time interval between frame:
{ pixelformat = 'YV12', description = 'YV12' }
{ discrete: width = 320, height = 240 }
Time interval between frame:
{ discrete: width = 640, height = 480 }
Time interval between frame:
vid:054c
pid:0155
driver:ov519
checking format: 1195724874
VIDIOC_G_COMP:: Inappropriate ioctl for device
fps is set to 0/0
drawing controls
control type: 0x00000006 not supported
fps is set to 1/1
Checking video mode 640x480@32bpp : OK
P33M commentedon Feb 26, 2014
Can you give
sudo BRANCH=next rpi-updatea go? My eyetoy works at 640x480 / 7fps with fiq_fsm.tvjon commentedon Feb 27, 2014
Certainly.
I had tried this again recently, but there was still some bottom-half picture tearing every few seconds.
Happily no tearing now, & between 5 & 7 fps, very good! I generally test using "guvcview", invoked from cli so I can see errors, normally hundreds, but now none!
Also 7 fps on fw 94e1.......30d38, but black screen only. With both firmwares, I left the 3 new cmdline FIQ options in, with a mask of 3.
I have a few more older webcams to check, so I'll update the wiki if any now work that previously didn't.
I was hoping to see just how the new FIQ handler copes with my hd 290e tuner, but I still haven't tracked down why in the last 3 or 4 kernels, it's demodulator won't initialise because of a gpio error. I've just checked kernel's bugzilla & strangely there's no reports, yet there were several for the previous initialisation error which other kernel users noticed after I reported it, so I'm beginning to wonder if it's RPi specific.
Anyway, very good results so far with the new handler. Next to test some USB audio devices.
P33M commentedon Feb 27, 2014
Can you link to the firmware commit that has the black screen?
tvjon commentedon Feb 27, 2014
I abbreviated the string to avoid any transposition errors from the other machine I was posting from. It's the contents of
.firmware_revision in the /boot folder, but I can't find it here on Github, so what's its relationship?
Here's the full string: "94e1b8014dfa69701d0432088acb11ae01130d38"
94e1b8014dfa69701d0432088acb11ae01130d38
popcornmix commentedon Mar 1, 2014
The .firmware_revision refers to:
Hexxeh/rpi-firmware@94e1b80
P33M commentedon Mar 6, 2014
Eyetoy works fine on my desk with BRANCH=next firmware.
@tvjon the commit producing the black screen does not include the fiq_fsm rewrite. This behaviour is typical of gspca when it gets no data - it just reports a black frame.
mfd: ab8500-core: Resolve code style issues
bpf, sockmap: Remove bucket->lock from sock_{hash|map}_free
bpf, sockmap: Remove bucket->lock from sock_{hash|map}_free
bpf, sockmap: Remove bucket->lock from sock_{hash|map}_free