From 3ee41056723d78198bf8fecf3fbc92e561599f58 Mon Sep 17 00:00:00 2001 From: yzq Date: Tue, 17 Apr 2012 16:35:41 +0800 Subject: [PATCH] hdmi:anx7150:when resolution not support by EDID, use other supported resolution --- drivers/video/hdmi/chips/anx7150/anx7150.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/video/hdmi/chips/anx7150/anx7150.c b/drivers/video/hdmi/chips/anx7150/anx7150.c index 8a6239cf1c19..0310da6eff12 100644 --- a/drivers/video/hdmi/chips/anx7150/anx7150.c +++ b/drivers/video/hdmi/chips/anx7150/anx7150.c @@ -44,8 +44,9 @@ static int anx7150_param_chg(struct anx7150_pdata *anx) { int resolution_real; - hdmi_switch_fb(anx->hdmi, HDMI_ENABLE); resolution_real = ANX7150_Get_Optimal_resolution(anx->hdmi->resolution); + anx->hdmi->resolution = resolution_real; + hdmi_switch_fb(anx->hdmi, HDMI_ENABLE); HDMI_Set_Video_Format(resolution_real); HDMI_Set_Audio_Fs(anx->hdmi->audio_fs); ANX7150_API_HDCP_ONorOFF(anx->hdmi->hdcp_on); -- 2.34.1