gspca: Fix falling back to lower isoc alt settings
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 31 Dec 2011 13:32:03 +0000 (11:32 -0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 31 Dec 2011 19:53:58 +0000 (11:53 -0800)
The current gspca core code has a regression where it no longer properly
falls back to lower alt settings when there is not enough bandwidth.

This causes many iso based usb-1 cameras to not work when plugged into a
usb2 hub or a sandybridge chipset motherboard!

This patch fixes this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/media/video/gspca/gspca.c

index 512f32ff446a139151c0f276504d10f0d801d5f1..2ca10dfec91fd2347532d35e22ea44fd4ee01298 100644 (file)
@@ -957,7 +957,7 @@ retry:
                                ret = -EIO;
                                goto out;
                        }
-                       alt = ep_tb[--alt_idx].alt;
+                       gspca_dev->alt = ep_tb[--alt_idx].alt;
                }
        }
 out: