hdmitx: Playback HLG video color is abnormal during playing [1/1]
authorZhengrong.Zhu <zhengrong.zhu@amlogic.com>
Fri, 15 Nov 2019 10:37:54 +0000 (18:37 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Wed, 4 Dec 2019 01:16:45 +0000 (18:16 -0700)
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 <zhengrong.zhu@amlogic.com>
(cherry picked from commit 82f2f9ff78c08c1b51738501dac9c6f213d4b33f)

drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c

index 2bd3a81393077dd1a044bcd29183fa4b1ca69ce1..ac4bb81a5af7ff51c9682234b87bd0d16675e61d 100644 (file)
@@ -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,