diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2024-07-04 11:01:51 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2024-08-05 09:38:46 +0200 |
commit | 613f21505b25a4f43f33de00f11afc059bedde2b (patch) | |
tree | fe603623e245856201df3baa5af38ba1f80c8e4e /include/media | |
parent | Merge tag 'v6.11-rc2' into media_stage (diff) | |
download | linux-613f21505b25a4f43f33de00f11afc059bedde2b.tar.xz linux-613f21505b25a4f43f33de00f11afc059bedde2b.zip |
media: cec: core: add new CEC_MSG_FL_REPLY_VENDOR_ID flag
If this flag is set, then the reply is expected to consist of
the CEC_MSG_VENDOR_COMMAND_WITH_ID opcode followed by the Vendor ID (as
used in bytes 1-4 of the message), followed by the struct cec_msg reply
field.
Note that this assumes that the byte after the Vendor ID is a
vendor-specific opcode.
This flag makes it easier to wait for replies to vendor commands,
using the same CEC framework support for waiting for regular replies.
Support for this flag is indicated by setting the new
CEC_CAP_REPLY_VENDOR_ID capability.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/cec.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/cec.h b/include/media/cec.h index d131514032f2..07d2ee8a3904 100644 --- a/include/media/cec.h +++ b/include/media/cec.h @@ -66,6 +66,8 @@ struct cec_data { struct list_head xfer_list; struct cec_adapter *adap; struct cec_msg msg; + u8 match_len; + u8 match_reply[5]; struct cec_fh *fh; struct delayed_work work; struct completion c; |