[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)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 23 May 2014 17:54:04 +0000 (14:54 -0300)
commit535ec214e23adaf72c775938e9e9c6c1cf6fc5b9
treef7e12186791b49a774326bf3bd77a3a86a7cd943
parent8bf54c4321dd6c57d4117f425890e5c6d49c103a
[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