dv: remove the wrong operation for txlx when dv off [1/1]
authorBrian Zhu <brian.zhu@amlogic.com>
Fri, 1 Nov 2019 10:17:12 +0000 (18:17 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Mon, 4 Nov 2019 05:28:15 +0000 (22:28 -0700)
PD#SWPL-5164

Problem:
Vsync operate the wrong registers on txlx chip.

Solution:
Add chip condition for txlx

Verify:
Verified on R311

Change-Id: Ic3c10b7ebdab9d72cc9f05fe68be2442a1be6200
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c

index 9112c35..a55f110 100644 (file)
@@ -3907,7 +3907,7 @@ void enable_dolby_vision(int enable)
                cur_csc_type[VD1_PATH] = VPP_MATRIX_NULL;
                /* clean mute flag for next time dv on */
                dolby_vision_flags &= ~FLAG_MUTE;
-               if (!is_meson_gxm()) {
+               if (!is_meson_gxm() && !is_meson_txlx()) {
                        hdr_osd_off();
                        hdr_vd1_off();
                }