[media] adv7842: support YCrCb analog input, receive CEA formats as RGB on VGA input
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 20 Dec 2013 08:44:27 +0000 (05:44 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 7 Jan 2014 08:28:26 +0000 (06:28 -0200)
commit69e9ba6f31e6ff93eecdbf6fbeff8e5320fd2155
tree65853db64dcf314c21f10a1a24a205162313eb88
parent32dbc8d4d5b2307ade65a28679e904c84f64764e
[media] adv7842: support YCrCb analog input, receive CEA formats as RGB on VGA input

Added support for YCrCb analog input.

If input is ADV7842_MODE_RGB and RGB quantization range is set to
V4L2_DV_RGB_RANGE_AUTO, then video with CEA timings will be received
as RGB. For ADV7842_MODE_COMP, automatic CSC mode will be selected.

See table 48 on page 281 in "ADV7842 Hardware Manual, Rev. 0, January 2011"
for details.

Make sure that when switching inputs the RGB quantization range is
updated as well.

Also updated the platform_data in ezkit to ensure that what was the old
default value is now explicitly specified, so the behavior for that board
is unchanged.

Signed-off-by: Mats Randgaard <matrandg@cisco.com>
Signed-off-by: Martin Bugge <marbugge@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Scott Jiang <scott.jiang.linux@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
arch/blackfin/mach-bf609/boards/ezkit.c
drivers/media/i2c/adv7842.c
include/media/adv7842.h