Files
kernel_common_drivers/include/linux
zhou.han 005740b59a hdmitx: Fix viu_mux return value for unsupported modes [1/1]
PD#SWPL-246415

Problem:
HDMITX and CVBS are bound to the same crtc. When configuring CVBS mode,
the system first checks if the 576cvbs mode is supported by hdmitx,
then verifies support in cvbs. HDMITX detects that 576cvbs is unsupported
and sets meson_crtc_state->viu_mux to 0. CVBS also uses this value,
resulting in vsync loss. This occurs because CVBS's clock source is enci,
requiring viu_mux to be configured as 1.

Solution:
When hdmitx_get_viu_mux determines that the current mode is not supported,
it should return VIU_MUX_INVALID instead of 0.Then, when cvbs configures
viu_mux, it will process based on the value in vinfo.

Verify:
s7d+t7c

Change-Id: I4bb1438c1cbdea9ac2b60b59d637de72a5b27bf6
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2026-01-29 20:17:37 -08:00
..