From: Mauro Carvalho Chehab Date: Sat, 31 Dec 2011 13:32:03 +0000 (-0200) Subject: gspca: Fix falling back to lower isoc alt settings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ac97ecc886472e97ff22a81c298163d180d24605;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git gspca: Fix falling back to lower isoc alt settings 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 Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Linus Torvalds --- diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index 512f32ff446a..2ca10dfec91f 100644 --- a/drivers/media/video/gspca/gspca.c +++ b/drivers/media/video/gspca/gspca.c @@ -957,7 +957,7 @@ retry: ret = -EIO; goto out; } - alt = ep_tb[--alt_idx].alt; + gspca_dev->alt = ep_tb[--alt_idx].alt; } } out: