media: cec: core: add new CEC_MSG_FL_REPLY_VENDOR_ID flag
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 4 Jul 2024 09:01:51 +0000 (11:01 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 5 Aug 2024 07:38:46 +0000 (09:38 +0200)
commit613f21505b25a4f43f33de00f11afc059bedde2b
treefe603623e245856201df3baa5af38ba1f80c8e4e
parent2c25dcc2361949bc7da730d22de36c019c6bf1e3
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>
Documentation/userspace-api/media/cec/cec-ioc-adap-g-caps.rst
Documentation/userspace-api/media/cec/cec-ioc-receive.rst
drivers/media/cec/core/cec-adap.c
drivers/media/cec/core/cec-core.c
include/media/cec.h
include/uapi/linux/cec.h