OSDN Git Service

media: cec: add the adap_monitor_pin_enable op
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 5 Nov 2017 12:36:36 +0000 (07:36 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Dec 2017 16:10:00 +0000 (11:10 -0500)
commit48ea2e926b5ad29c0747fbd90e605cc56fb78298
tree368c7d86ad1cf8640a99f31df7fd5970e14a5ee2
parentcc05c0ba23bbc05d34caeb4773b89e1dfc2598b8
media: cec: add the adap_monitor_pin_enable op

Some devices can monitor the CEC pin using an interrupt, but you
only want to enable the interrupt if you actually switch to pin
monitoring mode.

So add a new op that is called when pin monitoring needs to be
switched on or off.

Also fix a small bug where the initial CEC pin event was sent
again when calling S_MODE twice with the same CEC_MODE_MONITOR_PIN
mode.

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