diff --git a/drivers/amlogic/cec/hdmi_ao_cec.c b/drivers/amlogic/cec/hdmi_ao_cec.c index 0d45d2239a20..c55a794940ea 100644 --- a/drivers/amlogic/cec/hdmi_ao_cec.c +++ b/drivers/amlogic/cec/hdmi_ao_cec.c @@ -753,7 +753,7 @@ static void ao_cecb_init(void) reg = 0; reg |= (0 << 6);/*curb_err_init*/ reg |= (0 << 5);/*en_chk_sbitlow*/ - reg |= (0x15 << 0);/*rise_del_max*/ + reg |= (CEC_B_ARB_TIME << 0);/*rise_del_max*/ hdmirx_cec_write(DWC_CEC_CTRL2, reg); } @@ -1210,7 +1210,7 @@ void cec_hw_reset(unsigned int cec_sel) reg = 0; reg |= (0 << 6);/*curb_err_init*/ reg |= (0 << 5);/*en_chk_sbitlow*/ - reg |= (0x15 << 0);/*rise_del_max*/ + reg |= (CEC_B_ARB_TIME << 0);/*rise_del_max*/ hdmirx_cec_write(DWC_CEC_CTRL2, reg); } } else { diff --git a/drivers/amlogic/cec/hdmi_ao_cec.h b/drivers/amlogic/cec/hdmi_ao_cec.h index def2126892c8..df8e098afd7a 100644 --- a/drivers/amlogic/cec/hdmi_ao_cec.h +++ b/drivers/amlogic/cec/hdmi_ao_cec.h @@ -18,7 +18,7 @@ #ifndef __AO_CEC_H__ #define __AO_CEC_H__ -#define CEC_DRIVER_VERSION "2019/11/12: store msg during bootup from st\n" +#define CEC_DRIVER_VERSION "2019/12/01:finetune ARB time, cause cts 9.6.1\n" #define CEC_FRAME_DELAY msecs_to_jiffies(400) #define CEC_DEV_NAME "cec" @@ -83,6 +83,8 @@ enum cecbver { #define ENABLE_ONE_CEC 1 #define ENABLE_TWO_CEC 2 +#define CEC_B_ARB_TIME 8 + #define CEC_MSG_BUFF_MAX 30 /*