diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2019-04-23 14:44:59 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-05-23 11:32:40 +0200 |
commit | aa50accfda60468fd132573b8f83e158ff45cb3d (patch) | |
tree | 1a3196648aafd9063cfc430555b7aef583003ac5 /drivers/media/cec | |
parent | media: cec: move check from cec_transmit to cec_transmit_msg_fh (diff) | |
download | linux-aa50accfda60468fd132573b8f83e158ff45cb3d.tar.xz linux-aa50accfda60468fd132573b8f83e158ff45cb3d.zip |
media: cec: add CEC_MSG_FL_RAW flag and msg_is_raw helper function
This adds the userspace API to send raw unchecked CEC messages.
This will require root permissions.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/cec')
-rw-r--r-- | drivers/media/cec/cec-priv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/cec/cec-priv.h b/drivers/media/cec/cec-priv.h index 804e38f849c7..7bdf855aaecd 100644 --- a/drivers/media/cec/cec-priv.h +++ b/drivers/media/cec/cec-priv.h @@ -20,6 +20,11 @@ /* devnode to cec_adapter */ #define to_cec_adapter(node) container_of(node, struct cec_adapter, devnode) +static inline bool msg_is_raw(const struct cec_msg *msg) +{ + return msg->flags & CEC_MSG_FL_RAW; +} + /* cec-core.c */ extern int cec_debug; int cec_get_device(struct cec_devnode *devnode); |