deinterface: temporary remove afbc support on chip after g12a [1/1]
authorhuaihao.guo <huaihao.guo@amlogic.com>
Fri, 23 Nov 2018 02:31:02 +0000 (10:31 +0800)
committerLuan Yuan <luan.yuan@amlogic.com>
Thu, 29 Nov 2018 13:28:42 +0000 (21:28 +0800)
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 <huaihao.guo@amlogic.com>
drivers/amlogic/media/deinterlace/deinterlace_hw.c

index cc70cdc..c597258 100644 (file)
@@ -954,7 +954,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;
 
 
@@ -972,7 +972,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;