mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
media: i2c: rk628: fix hdmirx range detect when default
According to the CEA-861 specification, when the RGB default color gamut is detected: When the VIC is between 2 and 127, it is CE video, i.e., limited range. When the VIC is any other value, it is IT video, i.e., full range. Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com> Change-Id: I258bd84096a340fd88e37e7f127301469baadef9
This commit is contained in:
@@ -1931,9 +1931,9 @@ u8 rk628_hdmirx_get_range(struct rk628 *rk628)
|
||||
if (dvi)
|
||||
color_range = HDMIRX_FULL_RANGE;
|
||||
if (color_range == HDMIRX_DEFAULT_RANGE)
|
||||
vic ?
|
||||
(color_range = HDMIRX_FULL_RANGE) :
|
||||
(color_range = HDMIRX_LIMIT_RANGE);
|
||||
((vic >= 2) && (vic <= 127)) ?
|
||||
(color_range = HDMIRX_LIMIT_RANGE) :
|
||||
(color_range = HDMIRX_FULL_RANGE);
|
||||
}
|
||||
|
||||
return color_range;
|
||||
|
||||
Reference in New Issue
Block a user