]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] v4l: atmel-isi: Should clear bits before set the hardware register
authorJosh Wu <josh.wu@atmel.com>
Tue, 10 Dec 2013 12:25:47 +0000 (09:25 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 18 Dec 2013 08:55:48 +0000 (06:55 -0200)
commitbd6f27458b0c50469ba1bb0a53e5ad1ac9e950d5
tree0ebc5a4c23a44a09484d381cce4602d1520fdac2
parent135983e8b392b424c7c9e117a981ad21e7c26893
[media] v4l: atmel-isi: Should clear bits before set the hardware register

In the ISI driver it reads the config register to get original value,
then set the correct FRATE_DIV and YCC_SWAP_MODE directly. This will
cause some bits overlap.

So we need to clear these bits first, then set correct value. This patch
fix it.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/soc_camera/atmel-isi.c
include/media/atmel-isi.h