We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64df218 commit fe2e254Copy full SHA for fe2e254
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
@@ -358,6 +358,15 @@ static void handle_plugged_change(struct dw_hdmi *hdmi, bool plugged)
358
{
359
if (hdmi->plugged_cb && hdmi->codec_dev)
360
hdmi->plugged_cb(hdmi->codec_dev, plugged);
361
+ if (plugged && hdmi->ddc) {
362
+ struct edid *edid = drm_get_edid(&hdmi->connector, hdmi->ddc);
363
+ if (edid) {
364
+ if (hdmi->cec_notifier)
365
+ cec_notifier_set_phys_addr_from_edid(
366
+ hdmi->cec_notifier, edid);
367
+ kfree(edid);
368
+ }
369
370
}
371
372
int dw_hdmi_set_plugged_cb(struct dw_hdmi *hdmi, hdmi_codec_plugged_cb fn,
0 commit comments