diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2017-06-07 11:46:12 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-06-20 06:54:34 -0300 |
commit | f902c1e95d5dfe5102f8467d69dc51d505f832ee (patch) | |
tree | 29e8d0abcd8b7c4d67cd69a7b46f0b4abc10bf34 /drivers/media/cec/cec-core.c | |
parent | 2613cc6fd32c4997d8e9473f8249601a5e088ee7 (diff) | |
download | op-kernel-dev-f902c1e95d5dfe5102f8467d69dc51d505f832ee.zip op-kernel-dev-f902c1e95d5dfe5102f8467d69dc51d505f832ee.tar.gz |
[media] cec: add CEC_CAP_NEEDS_HPD
Add a new capability CEC_CAP_NEEDS_HPD. If this capability is set
then the hardware can only use CEC if the HDMI Hotplug Detect pin
is high. Such hardware cannot handle the corner case in the CEC specification
where it is possible to transmit messages even if no hotplug signal is
present (needed for some displays that turn off the HPD when in standby,
but still have CEC enabled).
Typically hardware that needs this capability have the HPD wired to the CEC
block, often to a 'power' or 'active' pin.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/cec/cec-core.c')
-rw-r--r-- | drivers/media/cec/cec-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/cec/cec-core.c b/drivers/media/cec/cec-core.c index 2f87748..b516d59 100644 --- a/drivers/media/cec/cec-core.c +++ b/drivers/media/cec/cec-core.c @@ -230,6 +230,7 @@ struct cec_adapter *cec_allocate_adapter(const struct cec_adap_ops *ops, adap->log_addrs.cec_version = CEC_OP_CEC_VERSION_2_0; adap->log_addrs.vendor_id = CEC_VENDOR_ID_NONE; adap->capabilities = caps; + adap->needs_hpd = caps & CEC_CAP_NEEDS_HPD; adap->available_log_addrs = available_las; adap->sequence = 0; adap->ops = ops; |