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)
committerNick Xie <nick@khadas.com>
Mon, 5 Aug 2019 05:54:04 +0000 (13:54 +0800)
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 b49f712..a2f22eb 100644 (file)
@@ -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);