From: Zheng Yang Date: Sat, 7 Apr 2012 10:24:39 +0000 (+0800) Subject: rk30: hdmi enable auto config and disable pre-emphasis. X-Git-Tag: firefly_0821_release~9451 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d19b8ab54de35089d55dd74fa449af621c127b43;p=firefly-linux-kernel-4.4.55.git rk30: hdmi enable auto config and disable pre-emphasis. --- diff --git a/drivers/video/rockchip/hdmi/rk30_hdmi_hw.c b/drivers/video/rockchip/hdmi/rk30_hdmi_hw.c index 55fce5aed0ce..bd06247ceec0 100755 --- a/drivers/video/rockchip/hdmi/rk30_hdmi_hw.c +++ b/drivers/video/rockchip/hdmi/rk30_hdmi_hw.c @@ -144,7 +144,7 @@ static void rk30_hdmi_config_phy(unsigned char vic) rk30_hdmi_config_phy_reg(0x168, 0xDA); rk30_hdmi_config_phy_reg(0x16c, 0xA2); rk30_hdmi_config_phy_reg(0x170, 0x0e); - rk30_hdmi_config_phy_reg(0x174, 0x22); + rk30_hdmi_config_phy_reg(0x174, 0x20); rk30_hdmi_config_phy_reg(0x178, 0x00); break; diff --git a/drivers/video/rockchip/hdmi/rk30_hdmi_task.c b/drivers/video/rockchip/hdmi/rk30_hdmi_task.c index f2c23aa826f2..d60cb586bc38 100755 --- a/drivers/video/rockchip/hdmi/rk30_hdmi_task.c +++ b/drivers/video/rockchip/hdmi/rk30_hdmi_task.c @@ -48,6 +48,7 @@ int hdmi_sys_init(void) hdmi->hotplug = HDMI_HPD_REMOVED; hdmi->state = HDMI_SLEEP; hdmi->enable = HDMI_ENABLE; + hdmi->autoconfig = HDMI_ENABLE; hdmi->vic = HDMI_VIDEO_DEFAULT_MODE; hdmi->audio.channel = HDMI_AUDIO_DEFAULT_CHANNEL; @@ -152,6 +153,9 @@ void hdmi_work(struct work_struct *work) return; } } + else if(hotplug == HDMI_HPD_REMOVED) + rk30_hdmi_removed(); + do { state_last = hdmi->state; switch(hdmi->state)