From: yzq Date: Tue, 17 Apr 2012 08:35:41 +0000 (+0800) Subject: hdmi:anx7150:when resolution not support by EDID, use other supported resolution X-Git-Tag: firefly_0821_release~9398 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3ee41056723d78198bf8fecf3fbc92e561599f58;p=firefly-linux-kernel-4.4.55.git hdmi:anx7150:when resolution not support by EDID, use other supported resolution --- 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);