mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
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:
committed by
gerrit autosubmit
parent
4dcf95ecdf
commit
e97e777438
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user