From d9e5bb5cc120f3fe1d14905374f30cdf5a2ca1e4 Mon Sep 17 00:00:00 2001 From: Jihong Sui Date: Mon, 14 May 2018 17:56:03 +0800 Subject: [PATCH] hdr: fix the bug that sdr can't switch to hdr for g12a PD#166004: hdr: fix the bug that sdr can't switch to hdr for g12a Change-Id: Ia7c14f86d63aa8b00617c47abad14e2eab96d2f6 Signed-off-by: Jihong Sui --- drivers/amlogic/media/enhancement/amvecm/amcsc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/amlogic/media/enhancement/amvecm/amcsc.c b/drivers/amlogic/media/enhancement/amvecm/amcsc.c index 45c47c6..71dd48d 100644 --- a/drivers/amlogic/media/enhancement/amvecm/amcsc.c +++ b/drivers/amlogic/media/enhancement/amvecm/amcsc.c @@ -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) || -- 2.7.4