hdr: fix the bug that sdr can't switch to hdr for g12a
authorJihong Sui <jihong.sui@amlogic.com>
Mon, 14 May 2018 09:56:03 +0000 (17:56 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Tue, 15 May 2018 09:14:03 +0000 (02:14 -0700)
PD#166004: hdr: fix the bug that sdr can't switch to hdr for g12a

Change-Id: Ia7c14f86d63aa8b00617c47abad14e2eab96d2f6
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
drivers/amlogic/media/enhancement/amvecm/amcsc.c

index 45c47c6..71dd48d 100644 (file)
@@ -4893,7 +4893,8 @@ static int vpp_matrix_update(
        if (sdr_mode == 2) { /* auto */
                if ((vinfo->hdr_info.hdr_support & 0x4) &&
                ((get_cpu_type() == MESON_CPU_MAJOR_ID_GXL) ||
-                (get_cpu_type() == MESON_CPU_MAJOR_ID_GXM)))
+                (get_cpu_type() == MESON_CPU_MAJOR_ID_GXM)
+                || (get_cpu_type() == MESON_CPU_MAJOR_ID_G12A)))
                        sdr_process_mode = 1; /*box sdr->hdr*/
                else if ((vinfo->viu_color_fmt == COLOR_FMT_RGB444) &&
                        ((get_cpu_type() == MESON_CPU_MAJOR_ID_GXTVBB) ||