media: cec: core: not all messages were passed on when monitoring
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 24 Mar 2023 14:52:57 +0000 (14:52 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 15 Apr 2023 06:48:39 +0000 (07:48 +0100)
commit6bade236f14033fa457a9e22ceb8a114a14d90e3
tree4178ebccb8d073a6618427f0df65ed551661d392
parentf100ce3bbd6aa0093075b20b9dbd006686f6aedf
media: cec: core: not all messages were passed on when monitoring

The valid_la boolean is used to check if the destination logical
address is either 15 (broadcast) or our logical address. If it is
for another logical address, then only adapters that have the
CEC_CAP_MONITOR_ALL capability can pass it on.

However, it is also used to do more detailed validity checks,
such as whether the message was broadcast when it should have been
directed, or vice versa, in which case the message must be ignored
according to the spec. But that should not apply to monitoring.

Add a new bool that just checks the LA and nothing else.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/cec/core/cec-adap.c