hdmi:anx7150:when resolution not support by EDID, use other supported resolution

This commit is contained in:
yzq
2012-04-17 16:35:41 +08:00
parent 0eb6ae01f9
commit 3ee4105672

View File

@@ -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);