ODROID-COMMON: vout: set default vout mode as HDMI always initialized

Change-Id: Id9adb4d3adbf95d61eb34ce9097a01738f54cb63
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
This commit is contained in:
Joy Cho
2019-01-04 10:45:30 +09:00
committed by Dongjin Kim
parent 0dfeba4136
commit 07668a6e92
2 changed files with 12 additions and 0 deletions

View File

@@ -4257,6 +4257,9 @@ static void hdmitx_hpd_plugin_handler(struct work_struct *work)
info = hdmitx_get_current_vinfo();
if (info && (info->mode == VMODE_HDMI))
hdmitx_set_audio(hdev, &(hdev->cur_audio_param));
#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
set_disp_mode_auto();
#endif
hdev->hpd_state = 1;
hdmitx_notify_hpd(hdev->hpd_state);

View File

@@ -894,7 +894,16 @@ static int refresh_tvout_mode(void)
if (tvout_monitor_flag == 0)
return 0;
#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
/*
* vout mode is treated as HDMI always initialized
* even though HDMI cable is detached.
* TODO : except cvbs cable is plugged in.
*/
hpd_state = 1;
#else
hpd_state = vout_get_hpd_state();
#endif
if (hpd_state) {
/* Vout will check the checksum of EDID of uboot and kernel.
* If checksum is different. Vout will set null to display/mode.