Skip to content

Commit

Permalink
Fix CEC on rk356X on tv restart (armbian#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
catalinii authored and amazingfate committed Mar 6, 2024
1 parent d55bbd0 commit 83ade89
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 @@ -362,6 +362,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 83ade89

Please sign in to comment.