“0bb5e19d63cc1b09aed8aef3a20926ac435bb8e7”上不存在“arch/sh/include/asm/pgtable.h”
提交 ca00033c 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

[media] cec: CEC_RECEIVE is allowed in monitor mode

When the device is in monitor mode, then you should always be able to
call CEC_RECEIVE, even it the device is unconfigured.
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 10a5210e
...@@ -263,7 +263,7 @@ static long cec_receive(struct cec_adapter *adap, struct cec_fh *fh, ...@@ -263,7 +263,7 @@ static long cec_receive(struct cec_adapter *adap, struct cec_fh *fh,
if (copy_from_user(&msg, parg, sizeof(msg))) if (copy_from_user(&msg, parg, sizeof(msg)))
return -EFAULT; return -EFAULT;
mutex_lock(&adap->lock); mutex_lock(&adap->lock);
if (!adap->is_configured) if (!adap->is_configured && fh->mode_follower < CEC_MODE_MONITOR)
err = -ENONET; err = -ENONET;
mutex_unlock(&adap->lock); mutex_unlock(&adap->lock);
if (err) if (err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册