]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] gspca core: Fix regressions gspca breaking devices with audio
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 7 Dec 2010 20:19:09 +0000 (17:19 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:16:59 +0000 (08:16 -0200)
commitd4b416f26279bbbe07faaff1c9cd19d6b3709b2e
treecc62051191844d1554a8cafda31125a2eb6310dd
parent86701c1d6a3ecae2f0e6771c730364d334d5a142
[media] gspca core: Fix regressions gspca breaking devices with audio

Changeset 35680ba broke several devices:
- Sony Playstation Eye (1415:2000);
- Gigaware model 25-234 (0c45:628f);
- Logitech Messenger Plus (046d:08f6).

Probably more devices were broken by this change.

What happens is that several devices don't need to save some bandwidth
for audio.

Also, as pointed by Hans de Goede <hdegoede@redhat.com>, the logic
that implements the bandwidth reservation for audio is broken, since
it will reduce the alt number twice, on devices with audio.

So, let's just revert the broken logic, and think on a better solution
for usb 1.1 devices with audio that can't use the maximum packetsize.

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