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)
committerNick Xie <nick@khadas.com>
Mon, 5 Aug 2019 07:04:48 +0000 (15:04 +0800)
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 ea41c7a..a006449 100644 (file)
@@ -2573,8 +2573,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) {