]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/media/cec-pin.h
media: cec: add CEC_EVENT_PIN_HPD_LOW/HIGH events
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 15 Aug 2017 14:07:25 +0000 (10:07 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 23 Sep 2017 11:43:04 +0000 (07:43 -0400)
commit333ef6bd10c3ffdaf6da94e34dc6cae675ed27fc
tree0f01c42950d43741dcac85bb4a31397cd3fb5e56
parentda634f623e4879d7716029a84791fc596ebac24d
media: cec: add CEC_EVENT_PIN_HPD_LOW/HIGH events

Add support for two new low-level events: PIN_HPD_LOW and PIN_HPD_HIGH.

This is specifically meant for use with the upcoming cec-gpio driver
and makes it possible to trace when the HPD pin changes. Some HDMI
sinks do strange things with the HPD and this makes it easy to debug
this.

Note that this also moves the initialization of a devnode mutex and
list to the allocate_adapter function: if the HPD is high, then as
soon as the HPD interrupt is created an interrupt occurs and
cec_queue_pin_hpd_event() is called which requires that the devnode
mutex and list are initialized.

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-core.c
include/media/cec-pin.h
include/media/cec.h
include/uapi/linux/cec.h