• Hans Verkuil's avatar
    media: cec: add CEC_EVENT_PIN_HPD_LOW/HIGH events · 333ef6bd
    Hans Verkuil authored
    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: default avatarHans Verkuil <hans.verkuil@cisco.com>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
    333ef6bd
cec-adap.c 60.4 KB