[media] atmel-isi: correct yuv swap according to different sensor outputs
authorJosh Wu <josh.wu@atmel.com>
Tue, 3 Nov 2015 05:45:08 +0000 (03:45 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 17 Nov 2015 17:28:52 +0000 (15:28 -0200)
commitba0422bf56e162b4f9f65c3b6f7fa178578da859
tree7baa0dc60e185bd5af7e8cec73eee383055d9d3c
parentdc51b7d015b6a5da00fd5e61a798607294e31a3d
[media] atmel-isi: correct yuv swap according to different sensor outputs

we need to configure the YCC_SWAP bits in ISI_CFG2 according to current
sensor output and Atmel ISI output format.

Current there are two cases Atmel ISI supported:
  1. Atmel ISI outputs YUYV format.
     This case we need to setup YCC_SWAP according to sensor output
     format.
  2. Atmel ISI output a pass-through formats, which means no swap.
     Just setup YCC_SWAP as default with no swap.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/soc_camera/atmel-isi.c