[media] gspca - main: Use a better altsetting for image transfer
authorJean-François Moine <moinejf@free.fr>
Wed, 10 Aug 2011 10:38:48 +0000 (07:38 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 24 Sep 2011 02:22:36 +0000 (23:22 -0300)
commit27b12023d72207b2d0b38bb9ef4fdb0a3325b682
treed660a136b11d3c6e0afc3462d798bc140d1d736a
parent2d06d5dd2d945780f24169af0ac86e1e03ffee19
[media] gspca - main: Use a better altsetting for image transfer

Previously image transfer used to use the highest altsetting, which, most of
the time, took the whole USB bandwidth.
Now, the altsetting is chosen according to an estimation of the bandwidth
needed for image transfer.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c