mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
di: flash green when play 265 SD video [1/1]
PD#SWPL-6097 Problem: flash green garbages when play h.265 SD video Solution: afbc input not enable Verify: tl1 Change-Id: I310eeb6d922ab8b9035c815afc4e967c0e5390ff Signed-off-by: Yong Qin <yong.qin@amlogic.com>
This commit is contained in:
@@ -129,7 +129,7 @@ static di_dev_t *de_devp;
|
||||
static dev_t di_devno;
|
||||
static struct class *di_clsp;
|
||||
|
||||
static const char version_s[] = "2019-03-19";
|
||||
static const char version_s[] = "2019-03-20a";
|
||||
|
||||
static int bypass_state = 1;
|
||||
static int bypass_all;
|
||||
@@ -6011,6 +6011,7 @@ static void di_unreg_process_irq(void)
|
||||
adpative_combing_exit();
|
||||
enable_di_pre_mif(false, mcpre_en);
|
||||
/*disable afbc module when afbc working in DI*/
|
||||
afbc_reg_unreg_flag = 0;
|
||||
#if 0
|
||||
if (IS_COMP_MODE(di_pre_stru.cur_inp_type) &&
|
||||
(!needbypass_flag && !isbypass_flag)) {
|
||||
|
||||
@@ -1272,7 +1272,7 @@ static void afbc_power_sw(bool on)
|
||||
/*afbcx_power_sw(dec_sel, on);*/
|
||||
}
|
||||
|
||||
static int afbc_reg_unreg_flag;
|
||||
int afbc_reg_unreg_flag;
|
||||
void afbc_sw(bool on)
|
||||
{
|
||||
if (is_meson_gxl_cpu() || is_meson_txlx_cpu())
|
||||
@@ -3650,7 +3650,7 @@ static void di_pre_data_mif_ctrl(bool enable)
|
||||
afbc_input_sw(true);
|
||||
} else {
|
||||
DI_Wr(DI_INP_GEN_REG, Rd(DI_INP_GEN_REG) | 0x1);
|
||||
afbc_input_sw(false);
|
||||
/*afbc_input_sw(false);*/
|
||||
}
|
||||
#endif
|
||||
/* nrwr no clk gate en=0 */
|
||||
|
||||
@@ -212,6 +212,7 @@ extern void afbc_reg_sw(bool on);
|
||||
extern void afbc_sw(bool on);
|
||||
extern void afbc_input_sw(bool on);
|
||||
extern void dump_vd2_afbc(void);
|
||||
extern int afbc_reg_unreg_flag;
|
||||
|
||||
extern u8 *di_vmap(ulong addr, u32 size, bool *bflg);
|
||||
extern void di_unmap_phyaddr(u8 *vaddr);
|
||||
|
||||
Reference in New Issue
Block a user