summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/gspca.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-12-31 11:32:03 -0200
committerLinus Torvalds <torvalds@linux-foundation.org>2011-12-31 11:53:58 -0800
commitac97ecc886472e97ff22a81c298163d180d24605 (patch)
tree7807a27faa7228cf6545220c2027103aadb2c8a1 /drivers/media/video/gspca/gspca.c
parente6780f7243eddb133cc20ec37fa69317c218b709 (diff)
downloadlinux-ac97ecc886472e97ff22a81c298163d180d24605.tar.gz
linux-ac97ecc886472e97ff22a81c298163d180d24605.tar.bz2
linux-ac97ecc886472e97ff22a81c298163d180d24605.zip
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 <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/media/video/gspca/gspca.c')
-rw-r--r--drivers/media/video/gspca/gspca.c2
1 files changed, 1 insertions, 1 deletions
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: