cec: not send the msg of cec off [1/1]

PD#SWPL-114133

Problem:
cec send msg of cec off

Solution:
not store msg when cec off

Verify:
sc2

Change-Id: I0be909f53e63af11b92c78f61e244229b2e5a0d0
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
This commit is contained in:
Wenjie Qiao
2023-03-06 14:38:57 +08:00
committed by gerrit autosubmit
parent 4dcf95ecdf
commit e97e777438
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -505,6 +505,9 @@ static bool cec_need_store_msg_to_buff(void)
* need to continue to store the received msg,
* otherwise msg will be flushed and lost.
*/
/* cec off, need not to store msg */
if (!(cec_config(0, 0) & CEC_FUNC_CFG_CEC_ON))
return false;
if (!cec_dev->framework_on || cec_dev->msg_num > 0)
return true;
else
+3
View File
@@ -600,6 +600,9 @@ static bool cec_need_store_msg_to_buff(void)
* need to continue to store the received msg,
* otherwise msg will be flushed and lost.
*/
/* cec off, need not to store msg */
if (!(cec_config(0, 0) & CEC_FUNC_CFG_CEC_ON))
return false;
if (!cec_dev->framework_on || cec_dev->msg_num > 0)
return true;
else