upstream: [media] mt9p031: Fix BLC configuration restore when disabling test pattern
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 8 May 2014 13:03:37 +0000 (10:03 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:59:24 +0000 (11:59 +0900)
commit4b7d2c2b9b03aa87c756aa53dc0c55ecab24f4ab
treebea809b29a27d74d85b124c0e8c2c4a32882479e
parentaa9781b8f1d37c82e39fa875be1f10694e6415e2
upstream: [media] mt9p031: Fix BLC configuration restore when disabling test pattern

Auto BLC and BLC digital offset are disabled when enabling the test
pattern and must be restored when disabling it. The driver does so by
calling the set control handler on the auto BLC and BLC offset controls,
but this programs the hardware with the new value of those controls, not
the current value. Fix this by writing to the registers directly.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/i2c/mt9p031.c