From 69b34885a17be9943b6af03f1bd0be1d88ac4c0b Mon Sep 17 00:00:00 2001 From: "huaihao.guo" Date: Fri, 23 Nov 2018 10:31:02 +0800 Subject: [PATCH] deinterface: temporary remove afbc support on chip after g12a [1/1] PD#172587 Problem: afbc now support on chip txlx and g12a, but we use cpu_after_eq(G12A) to judge if afbc is support or not. Solution: use is_meson_g12a_cpu() replace cpu_after_eq(G12A). Verify: u200(g12a),t962x_r311 Change-Id: I3fb7ed54f7137fada97481177e40a2543cf8df9f Signed-off-by: huaihao guo --- drivers/amlogic/media/deinterlace/deinterlace_hw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/amlogic/media/deinterlace/deinterlace_hw.c b/drivers/amlogic/media/deinterlace/deinterlace_hw.c index 3e2257f..04f0771 100644 --- a/drivers/amlogic/media/deinterlace/deinterlace_hw.c +++ b/drivers/amlogic/media/deinterlace/deinterlace_hw.c @@ -939,7 +939,7 @@ static enum eAFBC_DEC afbc_get_decnub(void) sel_dec = eAFBC_DEC0; else if (is_meson_txlx_cpu()) sel_dec = eAFBC_DEC1; - else if (cpu_after_eq(MESON_CPU_MAJOR_ID_G12A)) + else if (is_meson_g12a_cpu()) sel_dec = AFBC_DEC_SEL; @@ -957,7 +957,7 @@ bool afbc_is_supported(void) /*currently support txlx and g12a*/ if (is_meson_txlx_cpu() - || cpu_after_eq(MESON_CPU_MAJOR_ID_G12A)) + || is_meson_g12a_cpu()) ret = true; return ret; -- 2.7.4