#define CEC_FRAME_DELAY msecs_to_jiffies(400)
-#define CEC_DEV_NAME "cec"
+#define CEC_DEV_NAME "aocec"
#define CEC_POWER_ON (0 << 0)
#define CEC_EARLY_SUSPEND (1 << 0)
cec_cfg = cec_config(0, 0);
if (cec_cfg & CEC_FUNC_CFG_CEC_ON) {
/*cec module on*/
- if (cec_dev && (!wake_ok || cec_service_suspended()))
+ if (cec_dev && (!wake_ok || cec_service_suspended())
+ && !(cec_dev->hal_flag & (1 << HDMI_OPTION_SYSTEM_CEC_CONTROL)))
cec_rx_process();
/*for check rx buffer for old chip version, cec rx irq process*/
if (cec_cfg & CEC_FUNC_CFG_CEC_ON) {
/*cec module on*/
ret = cec_ll_tx(tempbuf, size);
+ if (ret == CEC_FAIL_NACK) {
+ return -1;
+ } else {
+ return size;
+ }
} else {
CEC_ERR("err:cec module disabled\n");
}
{
if (mode) {
*mode = 0666;
- CEC_INFO("mode is %x\n", *mode);
- } else
- CEC_INFO("mode is null\n");
+ }
return NULL;
}
#define CEC_DRIVER_VERSION "Ver 2019/3/25\n"
#define CEC_FRAME_DELAY msecs_to_jiffies(400)
-#define CEC_DEV_NAME "cec"
+#define CEC_DEV_NAME "aocec"
#define CEC_EARLY_SUSPEND (1 << 0)
#define CEC_DEEP_SUSPEND (1 << 1)