drm/rockchip: tve: set the &rockchip_tve.tv_format in &drm_encoder_helper_funcs.mode_set()

Although the previous patch helps to avoid display flashing during
the uboot/kernel logo switching, it forgot to set the
&rockchip_tve.tv_format in &drm_encoder_helper_funcs.mode_set()
which is needed in later &drm_encoder_helper_funcs.enable() process.

Fixes: e3b31a037d ("drm/rockchip: tve: add .loader_protect() support for tve")
Change-Id: Ib4e81f0c9ab64c1c2db9bd19209a6f108cae70e9
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
This commit is contained in:
Damon Ding
2024-12-09 19:43:29 +08:00
parent 030cb99b13
commit 15218ae4e6

View File

@@ -503,6 +503,8 @@ static void rockchip_tve_encoder_mode_set(struct drm_encoder *encoder,
tve_set_mode(tve);
dac_enable(tve, true);
}
tve->tv_format = tv_format;
}
static bool