hdmitx: set frac_rate_policy as 1.[1/2]
authorZongdong Jiao <zongdong.jiao@amlogic.com>
Tue, 8 May 2018 02:55:28 +0000 (10:55 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Tue, 8 May 2018 11:46:44 +0000 (04:46 -0700)
PD#165862: hdmitx: set frac_rate_policy as 1
For most video/films or NTSC, they are 23.976/29.97/59.94fps, so
hdmitx should adjust set frac_rate_policy as 1.

Change-Id: I9671935c5121634d1af6879d8ccd91eb4f92c9cb
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c

index 2d96f83..bd6494b 100644 (file)
@@ -496,6 +496,7 @@ static int set_disp_mode_auto(void)
                hdev->cur_VIC = vic;
                hdev->output_blank_flag = 1;
                hdev->ready = 1;
+               recalc_vinfo_sync_duration(info, hdev->frac_rate_policy);
                return 1;
        }
 
@@ -3495,8 +3496,8 @@ static int amhdmitx_device_init(struct hdmitx_dev *hdmi_dev)
        hdmitx_device.force_audio_flag = 0;
        hdmitx_device.hdcp_mode = 0;
        hdmitx_device.ready = 0;
-       /* no 1.000/1.001 modes by default */
-       hdmitx_device.frac_rate_policy = 0;
+       /* 59.94(60/1.001) modes by default */
+       hdmitx_device.frac_rate_policy = 1;
        hdmitx_device.rxsense_policy = 0; /* no RxSense by default */
        /* enable or disable HDMITX SSPLL, enable by default */
        hdmitx_device.sspll = 1;