[media] gspca - main: Correct use of interval in bandwidth calculation
authorHans de Goede <hdegoede@redhat.com>
Fri, 30 Dec 2011 11:20:50 +0000 (08:20 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jan 2012 11:01:18 +0000 (09:01 -0200)
commitd0d3435b212f88aebee6a06e002e4fd3b487a918
tree398fd278fa4787dd4bde55dff221cf2d819106ae
parent66957b864646e2ea0aebc66d1173f39a63509a19
[media] gspca - main: Correct use of interval in bandwidth calculation

The calculated bandwidth should not be multiplied by the interval, but be
divided by it. Also bInterbval should be interpreted as a power of 2
for isochronous endpoints.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
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