From 6a927947f898cf2c49ca79131f496404fffbfb19 Mon Sep 17 00:00:00 2001 From: Zongdong Jiao Date: Tue, 8 May 2018 10:55:28 +0800 Subject: [PATCH] hdmitx: set frac_rate_policy as 1.[1/2] 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 Signed-off-by: Luan Yuan --- drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c index 2d96f83..bd6494b 100644 --- a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c +++ b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c @@ -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; -- 2.7.4