fix hdmi cec

This commit is contained in:
amazingfate
2023-05-16 17:49:29 +08:00
committed by Mecid Urganci
parent 7f2e9e8254
commit 14b94d16a2

View File

@@ -3815,6 +3815,15 @@ void dw_hdmi_qp_cec_set_hpd(struct dw_hdmi_qp *hdmi, bool plug_in, bool change)
if (!plug_in)
cec_notifier_set_phys_addr(hdmi->cec_notifier,
CEC_PHYS_ADDR_INVALID);
else if (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);
}
}
if (hdmi->bridge.dev) {
#if IS_REACHABLE(CONFIG_DRM_DW_HDMI_CEC)