V4L/DVB (13142): gspca_mr97310a: small tweak to CIF sensor type 1 exposure setting
authorHans de Goede <hdegoede@redhat.com>
Sun, 11 Oct 2009 08:22:29 +0000 (05:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:40:32 +0000 (18:40 -0200)
commitd76f975c574230fb00d07848d330e04d97e51475
treed9ef5cd5acf8af4e6cae0d1cfb33dc6920e939c5
parent205260102c5cef4180982eec88aaeb6934faf214
V4L/DVB (13142): gspca_mr97310a: small tweak to CIF sensor type 1 exposure setting

The CIF sensor type 1 exposure setting got clamped at 300, as settings below
300 do not work well (and do work for the other sensors). This patch
scales the 0-4095 range to 300-4095 instead of ignoring changes between
300, avoiding have a part of the control range where nothing happens.

This is esp. important for software autogain as done by libv4l.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/mr97310a.c