]> git.karo-electronics.de Git - linux-beck.git/commit
[media] cec: ignore messages when log_addr_mask == 0
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 12 Aug 2016 16:32:07 +0000 (13:32 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 22 Aug 2016 17:02:03 +0000 (14:02 -0300)
commit3e92d8b238e48dfb539e8112bb2cc463e35e1b71
tree280b3ccc17ccd7dfc58c285917217dd14edd0ac4
parent260ff1144a9dd1afb85cf5da462672d68412cbc4
[media] cec: ignore messages when log_addr_mask == 0

Most CEC adapters will still receive broadcast messages, even if no logical
addresses are claimed. But those messages should only be passed on for
monitoring purposes, but not for processing by either kernel or userspace
if userspace didn't call CEC_ADAP_S_LOG_ADDRS first.

So if adap->log_addrs.log_addr_mask is 0, then just return before passing
the received message on to the processing code.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/cec/cec-adap.c