projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10a5210
)
[media] cec: CEC_RECEIVE is allowed in monitor mode
author
Hans Verkuil
<
[email protected]
>
Mon, 11 Jul 2016 08:48:10 +0000
(
05:48
-0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Tue, 12 Jul 2016 16:40:06 +0000
(13:40 -0300)
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: Hans Verkuil <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/staging/media/cec/cec-api.c
patch
|
blob
|
history
diff --git
a/drivers/staging/media/cec/cec-api.c
b/drivers/staging/media/cec/cec-api.c
index d7cba7a7d6b093174fd1fd7d0867727a8e1e2ccd..9151b1fa18dc78e23a977c0c67a21f30fdcac506 100644
(file)
--- a/
drivers/staging/media/cec/cec-api.c
+++ b/
drivers/staging/media/cec/cec-api.c
@@
-263,7
+263,7
@@
static long cec_receive(struct cec_adapter *adap, struct cec_fh *fh,
if (copy_from_user(&msg, parg, sizeof(msg)))
return -EFAULT;
mutex_lock(&adap->lock);
- if (!adap->is_configured)
+ if (!adap->is_configured
&& fh->mode_follower < CEC_MODE_MONITOR
)
err = -ENONET;
mutex_unlock(&adap->lock);
if (err)