amvecm: fix sm1 green screen when play videos [1/1]
authorBencheng Jing <bencheng.jing@amlogic.com>
Wed, 17 Apr 2019 03:26:58 +0000 (11:26 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Wed, 17 Apr 2019 07:49:42 +0000 (00:49 -0700)
PD#SWPL-7302

Problem:
sm1 green screen when play videos

Solution:
add chip support

Verify:
s905D3

Change-Id: I50c0a9f889d72b65157a973bfe1df8dce10db64a
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
drivers/amlogic/media/enhancement/amvecm/amve.c

index e0b892f..53b6dd9 100644 (file)
@@ -1324,7 +1324,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);