[media] s5p-fimc: fix the value of YUV422 1-plane formats
authorHyunwoong Kim <khw0178.kim@samsung.com>
Wed, 22 Dec 2010 03:56:05 +0000 (00:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 21 Mar 2011 23:31:39 +0000 (20:31 -0300)
commit10038bea7a729bcb8c51a2c856f5b58b33646d65
treed0a71cc5c53961fbea0aea2975fe3f38bfd12cf6
parenta25be18dfb6e1b172498a9f6c9793d67057000b0
[media] s5p-fimc: fix the value of YUV422 1-plane formats

Some color formats are mismatched in s5p-fimc driver.
CIOCTRL[1:0], order422_out, should be set 2b'00 not 2b'11
to use V4L2_PIX_FMT_YUYV. Because in V4L2 standard V4L2_PIX_FMT_YUYV means
"start + 0: Y'00 Cb00 Y'01 Cr00 Y'02 Cb01 Y'03 Cr01". According to datasheet
2b'00 is right value for V4L2_PIX_FMT_YUYV.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-fimc/fimc-core.c
drivers/media/video/s5p-fimc/fimc-core.h
drivers/media/video/s5p-fimc/regs-fimc.h