From: Zhengrong.Zhu Date: Fri, 15 Nov 2019 10:37:54 +0000 (+0800) Subject: hdmitx: Playback HLG video color is abnormal during playing [1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a88ed09cb96f6a1e7d446f5a73d9173e38ec54f9;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git hdmitx: Playback HLG video color is abnormal during playing [1/1] PD#SWPL-16374 Problem: Playback HLG video color display is abnormal during playing Solution: Modify code related to color space. Verify: verify on the board of U212 Change-Id: Ie01ba1f9931a5e8f12bd1cfd70fd9ea752194f9b Signed-off-by: Zhengrong Zhu (cherry picked from commit 82f2f9ff78c08c1b51738501dac9c6f213d4b33f) --- 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 2bd3a8139307..ac4bb81a5af7 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 @@ -1740,6 +1740,10 @@ static void hdmitx_set_vsif_pkt(enum eotf_type type, HDMI_PACKET_VEND, VEN_DB2, VEN_HB); if (signal_sdr) { pr_info("hdmitx: Dolby VSIF, switching signal to SDR\n"); + update_current_para(hdev); + pr_info("vic:%d, cd:%d, cs:%d, cr:%d\n", + hdev->para->vic, hdev->para->cd, + hdev->para->cs, hdev->para->cr); hdev->hwop.cntlconfig(hdev, CONF_AVI_RGBYCC_INDIC, hdev->para->cs); hdev->hwop.cntlconfig(hdev,