spca5xx work if, and only if, webcam is the first plugged usb

Bug #34543 reported by Guillermo Gutiérrez
24
Affects Status Importance Assigned to Milestone
spca5xx (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Yes, as you can hear. I must to start the computer without usb devices. When it is running, now plugg the spca5xx camera, and then the remaings usb's...

If I do not do this way, I obtain usb_submit_urb(0) ret -28 when trying to read /dev/video0

thx.

Revision history for this message
Rounan (nrcavan) wrote :

Confirmed.

Related bug: 38906

Changed in spca5xx:
status: Unconfirmed → Confirmed
Revision history for this message
Guillermo Gutiérrez (capitanterrex) wrote :

somebody working on this?

Revision history for this message
vodunvibe (vodunvibe) wrote :
Download full text (4.8 KiB)

Subject: [PATCH] spca5xx patch for “No space left on device” error message

Related bugs:
https://launchpad.net/distros/ubuntu/+source/spca5xx/+bug/34543
https://launchpad.net/distros/ubuntu/+source/linux-source-2.6.15/+bug/42132
https://launchpad.net/distros/ubuntu/+source/linux-source-2.6.15/+bug/38906

Please take a look at the following for more details and fixes:
http://ubuntuforums.org/showthread.php?t=247646

Subject: [PATCH] spca5xx patch for “No space left on device” error message

This patch Fixes the bandwidth problem that occurs when other USB devices
are on the same host controller bus as the camera by gradually lowering the
bandwidth requirements of the driver.

When the patch is applied, spca5xx drivers works even when other USB devices
are present on the same host controller bus as the camera.

This patch is currently against the spca5xx-20060501 source.

To apply the patch from your current working directory, with a subdirectory
called spca5xx-20060501 use:
patch -p0 < spca5xx-20060501-vodunvibe-Nospaceleftondevice.patch

To apply the patch, in the spca5xx-20060501 directory use:
patch -p1 < spca5xx-20060501-vodunvibe-Nospaceleftondevice.patch

Bandwidth Problem details:
 When other USB devices are present on the same host controller
 bus as the camera, the bandwidth requirements of the spca5xx driver
 are not being met. The spca5xx driver is asking for more bandwidth
 than is available which results in the following error messages:

 No space left on device
 can't open /dev/video0: No space left on device.
 usb_submit_urb(0) ret -28

Thanks,
vodunvibe

diff -urN spca5xx-20060501.orig/drivers/usb/spca5xx.c spca5xx-20060501/drivers/usb/spca5xx.c
--- spca5xx-20060501.orig/drivers/usb/spca5xx.c 2006-04-29 11:38:07.000000000 -0400
+++ spca5xx-20060501/drivers/usb/spca5xx.c 2006-09-05 13:19:04.000000000 -0400
@@ -1574,6 +1574,66 @@
       spca50x->funct.stopN(spca50x);
 }

+
+/**********************************************************************
+* spcaReducePacketSize
+* Function Fixes the bandwidth problem that occurs
+* when other USB devices are on the same host controller bus as the
+* camera by gradually lowering the bandwidth requirements of the driver.
+* It works even when other USB devices are present on the same
+* host controller bus as the camera.
+*
+* Problem
+* When other USB devices are present on the same host controller
+* bus as the camera, the bandwidth requirements of the spca5xx driver
+* are not being met. The spca5xx driver is asking for more bandwidth
+* than is available which results in the following error messages:
+*
+* No space left on device
+* can't open /dev/video0: No space left on device.
+* usb_submit_urb(0) ret -28
+*
+*
+* Many thanks to all the wonderful people contributing to this project.
+*
+* Great work!
+* vodunvibe [AT] <email address hidden> yahoo DOT com
+* 2006-08-27
+*
+***********************************************************************/
+static int spcaReducePacketSize(struct usb_spca50x *spca50x, int n, int err)
+{
+ int size=896, fx, i;
+ err("spcaReducePacketSize: vodunvibe - The usb_submit_urb(%d) transfer request submission failed - You probably have another dev...

Read more...

Revision history for this message
Guillermo Gutiérrez (capitanterrex) wrote :

Not fix in edgy yet. Could you give a look to the vodunvibe's patch and consider it for inclusion in edgy-security or edgy-updates? This is a blocking bug in my opinion. Thanks

Revision history for this message
Guillermo Gutiérrez (capitanterrex) wrote :

Not fixed in edgy yet. Could you give a look to the vodunvibe's patch and consider it for inclusion in edgy-security or edgy-updates? This is a blocking bug in my opinion. Thanks

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

Please forward this upstream, and to Debian spca5xx Maintainers <email address hidden>

Changed in spca5xx:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.