media: cec-funcs.h: add status_req checks
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 1 Oct 2019 07:56:38 +0000 (04:56 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 7 Oct 2019 10:54:59 +0000 (07:54 -0300)
commit9b211f9c5a0b67afc435b86f75d78273b97db1c5
tree3bd040f87a89a942e4af21e104affd9ab78656e0
parent649cd16c438f51d4cd777e71ca1f47f6e0c5e65d
media: cec-funcs.h: add status_req checks

The CEC_MSG_GIVE_DECK_STATUS and CEC_MSG_GIVE_TUNER_DEVICE_STATUS commands
both have a status_req argument: ON, OFF, ONCE. If ON or ONCE, then the
follower will reply with a STATUS message. Either once or whenever the
status changes (status_req == ON).

If status_req == OFF, then it will stop sending continuous status updates,
but the follower will *not* send a STATUS message in that case.

This means that if status_req == OFF, then msg->reply should be 0 as well
since no reply is expected in that case.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
include/uapi/linux/cec-funcs.h