Skip to content

Commit

Permalink
Fix CEC on rk356X on tv restart (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
catalinii authored and amazingfate committed Jul 18, 2024
1 parent 1353b19 commit 7abf725
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,15 @@ static void handle_plugged_change(struct dw_hdmi *hdmi, bool plugged)
{
if (hdmi->plugged_cb && hdmi->codec_dev)
hdmi->plugged_cb(hdmi->codec_dev, plugged);
if (plugged && hdmi->ddc) {
struct edid *edid = drm_get_edid(&hdmi->connector, hdmi->ddc);
if (edid) {
if (hdmi->cec_notifier)
cec_notifier_set_phys_addr_from_edid(
hdmi->cec_notifier, edid);
kfree(edid);
}
}
}

int dw_hdmi_set_plugged_cb(struct dw_hdmi *hdmi, hdmi_codec_plugged_cb fn,
Expand Down

0 comments on commit 7abf725

Please sign in to comment.