From: zwl Date: Wed, 9 Apr 2014 03:52:43 +0000 (+0800) Subject: rk3288-hdmi: fix the CTS value of 4k resolution calc err X-Git-Tag: firefly_0821_release~5597 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6633c3d23a6c18b330928bd1e6d5c139357e08bf;p=firefly-linux-kernel-4.4.55.git rk3288-hdmi: fix the CTS value of 4k resolution calc err --- diff --git a/drivers/video/rockchip/hdmi/chips/rk3288/rk3288_hdmi.c b/drivers/video/rockchip/hdmi/chips/rk3288/rk3288_hdmi.c index 4e3bbeba884a..a0588c37cd77 100644 --- a/drivers/video/rockchip/hdmi/chips/rk3288/rk3288_hdmi.c +++ b/drivers/video/rockchip/hdmi/chips/rk3288/rk3288_hdmi.c @@ -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); diff --git a/drivers/video/rockchip/hdmi/chips/rk3288/rk3288_hdmi_hw.h b/drivers/video/rockchip/hdmi/chips/rk3288/rk3288_hdmi_hw.h index d056219befe4..e723a9094631 100644 --- a/drivers/video/rockchip/hdmi/chips/rk3288/rk3288_hdmi_hw.h +++ b/drivers/video/rockchip/hdmi/chips/rk3288/rk3288_hdmi_hw.h @@ -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