From: Laurent Pinchart Date: Wed, 4 Dec 2013 16:19:11 +0000 (-0300) Subject: [media] v4l: atmel-isi: Fix color component ordering X-Git-Tag: v3.14-rc1~20^2~259 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=135983e8b392b424c7c9e117a981ad21e7c26893;p=pandora-kernel.git [media] v4l: atmel-isi: Fix color component ordering The ISI_CFG2.YCC_SWAP field controls color component ordering. The datasheet lists the following orderings for the memory formats. YCC_SWAP Byte 0 Byte 1 Byte 2 Byte 3 00: Default Cb(i) Y(i) Cr(i) Y(i+1) 01: Mode1 Cr(i) Y(i) Cb(i) Y(i+1) 10: Mode2 Y(i) Cb(i) Y(i+1) Cr(i) 11: Mode3 Y(i) Cr(i) Y(i+1) Cb(i) This is based on a sensor format set to CbYCrY (UYVY). The driver hardcodes the output memory format to YUYV, configure the ordering accordingly. Signed-off-by: Laurent Pinchart Acked-by: Josh Wu Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed