omapdrm: omapdss_hdmi_ops: add lost_hotplug op
The CEC framework needs to know when the hotplug detect signal disappears, since that means the CEC physical address has to be invalidated (i.e. set to f.f.f.f). Add a lost_hotplug op that is called when the HPD signal goes away. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:

committed by
Tomi Valkeinen

parent
1897e1a394
commit
019114efd9
@@ -159,8 +159,12 @@ static int tpd_read_edid(struct omap_dss_device *dssdev,
|
||||
static bool tpd_detect(struct omap_dss_device *dssdev)
|
||||
{
|
||||
struct panel_drv_data *ddata = to_panel_data(dssdev);
|
||||
struct omap_dss_device *in = ddata->in;
|
||||
bool connected = gpiod_get_value_cansleep(ddata->hpd_gpio);
|
||||
|
||||
return gpiod_get_value_cansleep(ddata->hpd_gpio);
|
||||
if (!connected && in->ops.hdmi->lost_hotplug)
|
||||
in->ops.hdmi->lost_hotplug(in);
|
||||
return connected;
|
||||
}
|
||||
|
||||
static int tpd_register_hpd_cb(struct omap_dss_device *dssdev,
|
||||
|
Reference in New Issue
Block a user