diff --git a/drivers/amlogic/cec/hdmi_ao_cec.c b/drivers/amlogic/cec/hdmi_ao_cec.c index 09eb4066a0e0..22f21391c7a5 100644 --- a/drivers/amlogic/cec/hdmi_ao_cec.c +++ b/drivers/amlogic/cec/hdmi_ao_cec.c @@ -63,7 +63,7 @@ #include "hdmi_ao_cec.h" -#define CEC_FRAME_DELAY msecs_to_jiffies(400) +/*#define CEC_FRAME_DELAY msecs_to_jiffies(400)*/ #define CEC_DEV_NAME "cec" #define HR_DELAY(n) (ktime_set(0, n * 1000 * 1000)) @@ -1510,7 +1510,7 @@ static int check_confilct(void) { int i; - for (i = 0; i < 200; i++) { + for (i = 0; i < CEC_CHK_BUS_CNT; i++) { /* * sleep 20ms and using hrtimer to check cec line every 1ms */ @@ -1522,7 +1522,7 @@ static int check_confilct(void) break; CEC_INFO("line busy:%d\n", cec_line_cnt); } - if (i >= 200) + if (i >= CEC_CHK_BUS_CNT) return -EBUSY; else return 0; diff --git a/drivers/amlogic/cec/hdmi_ao_cec.h b/drivers/amlogic/cec/hdmi_ao_cec.h index 123b404e9319..134fd671440d 100644 --- a/drivers/amlogic/cec/hdmi_ao_cec.h +++ b/drivers/amlogic/cec/hdmi_ao_cec.h @@ -18,9 +18,11 @@ #ifndef __AO_CEC_H__ #define __AO_CEC_H__ -#define CEC_DRIVER_VERSION "2019/12/09:sm1 bus check reg define err\n" +#define CEC_DRIVER_VERSION "2020/03/16:reduece no msg in sleep time\n" + +#define CEC_FRAME_DELAY msecs_to_jiffies(30) +#define CEC_CHK_BUS_CNT 20 -#define CEC_FRAME_DELAY msecs_to_jiffies(400) #define CEC_DEV_NAME "cec" #define CEC_PHY_PORT_NUM 4