From f3cba862941d3a95992eff902de79fd0e0236bbb Mon Sep 17 00:00:00 2001 From: Bencheng Jing Date: Wed, 17 Apr 2019 11:26:58 +0800 Subject: [PATCH] amvecm: fix sm1 green screen when play videos [1/1] PD#SWPL-7302 Problem: sm1 green screen when play videos Solution: add chip support Verify: s905D3 Change-Id: I50c0a9f889d72b65157a973bfe1df8dce10db64a Signed-off-by: Bencheng Jing --- drivers/amlogic/media/enhancement/amvecm/amve.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/amlogic/media/enhancement/amvecm/amve.c b/drivers/amlogic/media/enhancement/amvecm/amve.c index b49f712..a2f22eb 100644 --- a/drivers/amlogic/media/enhancement/amvecm/amve.c +++ b/drivers/amlogic/media/enhancement/amvecm/amve.c @@ -1310,7 +1310,8 @@ void amvecm_3d_sync_process(void) #define SR_NOSCALE_LEVEL 0x10 static void amve_sr_reg_setting(unsigned int adaptive_level) { - if (is_meson_g12a_cpu() || is_meson_g12b_cpu()) + if (is_meson_g12a_cpu() || is_meson_g12b_cpu() || + is_meson_sm1_cpu()) goto g12_sr_reg_setting; if (adaptive_level & SR_SD_SCALE_LEVEL) am_set_regmap(&sr1reg_sd_scale); -- 2.7.4