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:
Jianwei Fan
2025-09-24 15:09:27 +08:00
committed by 范建威
parent 41c01fb27b
commit b7f7724895

View File

@@ -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;