[media] gscpa - sn9c20x: Add sd_isoc_init ensuring enough bw when i420 fmt
authorHans de Goede <hdegoede@redhat.com>
Sun, 1 Jan 2012 19:03:37 +0000 (16:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jan 2012 11:08:55 +0000 (09:08 -0200)
commitd80dd5d036147e00a27e3c649aec64bf9e572e9b
tree46c68026a045d8be9978666991772a23241cb826
parenteb3fb7c9633f79077c7c650efe0edec1840926da
[media] gscpa - sn9c20x: Add sd_isoc_init ensuring enough bw when i420 fmt

When using the SN9C20X_I420 fmt the sn9c20x needs more bandwidth
than our regular bandwidth calculations reserve.

This patch adds a sd_isoc_init function, which forces the use of a specific
altsetting when using the SN9C20X_I420 fmt.

This fixes the bottom 10-30% of the image getting corrupted when using
the SN9C20X_I420 fmt (which is the default fmt).

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/sn9c20x.c