rk3288-hdmi: fix the CTS value of 4k resolution calc err
authorzwl <zwl@rock-chips.com>
Wed, 9 Apr 2014 03:52:43 +0000 (11:52 +0800)
committerzwl <zwl@rock-chips.com>
Wed, 9 Apr 2014 03:53:01 +0000 (11:53 +0800)
drivers/video/rockchip/hdmi/chips/rk3288/rk3288_hdmi.c
drivers/video/rockchip/hdmi/chips/rk3288/rk3288_hdmi_hw.h

index 4e3bbeba884ae08b89b3cd8cd72ede34b7762652..a0588c37cd775338181df4a54b1cfd5a2ee0830a 100644 (file)
@@ -230,7 +230,9 @@ static void rk3288_hdmi_early_resume(void)
        hdmi_drv->suspend = 0;
        rk3288_hdmi_initial(hdmi_drv);
        if(hdmi_dev->irq == 0){
-               queue_delayed_work(hdmi_drv->workqueue, &hdmi_dev->delay_work, msecs_to_jiffies(HDMI_POLL_MDELAY / 2));
+#ifdef HDMI_INT_USE_POLL
+               queue_delayed_work(hdmi_drv->workqueue, &hdmi_dev->delay_work, msecs_to_jiffies(5));
+#endif
        }
        else if(hdmi_drv->enable){
                enable_irq(hdmi_drv->irq);
index d056219befe44382ac0fa3b6ca967dd0b6205e72..e723a90946315bc72e33b41c6c5d89e534e64803 100644 (file)
@@ -852,7 +852,7 @@ enum I2S_WIDTH {
 #define N_192K_MIDCLK          0x5000
 #define N_192K_HIGHCLK                 0x6000
 
-#define CALC_CTS(N, TMDSCLK, FS)       ((N) / 128) * (TMDSCLK) / (FS)
+#define CALC_CTS(N, TMDSCLK, FS)       ((N) / 32) * (TMDSCLK) / ((FS) * 4)
 /****************************************/
 
 #define AUD_N1                         0x3200