From 6633c3d23a6c18b330928bd1e6d5c139357e08bf Mon Sep 17 00:00:00 2001 From: zwl Date: Wed, 9 Apr 2014 11:52:43 +0800 Subject: [PATCH] rk3288-hdmi: fix the CTS value of 4k resolution calc err --- drivers/video/rockchip/hdmi/chips/rk3288/rk3288_hdmi.c | 4 +++- drivers/video/rockchip/hdmi/chips/rk3288/rk3288_hdmi_hw.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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 -- 2.34.1