cec: cmd read some time will loss msg [1/1]
authorYong Qin <yong.qin@amlogic.com>
Wed, 19 Jun 2019 09:39:42 +0000 (17:39 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Thu, 20 Jun 2019 05:50:00 +0000 (22:50 -0700)
PD#SWPL-9283

Problem:
android read cec, some time will lose msg

Solution:
del hal flag

Verify:
tl1

Change-Id: I2357ff2a09c60e930e64d663650a4d4509688c71
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
drivers/amlogic/cec/hdmi_ao_cec.c

index d1fa787..4dbb70b 100644 (file)
@@ -2793,8 +2793,6 @@ static ssize_t hdmitx_cec_read(struct file *f, char __user *buf,
 {
        int ret;
 
-       if ((cec_dev->hal_flag & (1 << HDMI_OPTION_SYSTEM_CEC_CONTROL)))
-               rx_len = 0;
        /*CEC_ERR("read msg start\n");*/
        ret = wait_for_completion_timeout(&cec_dev->rx_ok, CEC_FRAME_DELAY);
        if (ret <= 0) {