You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
fix hdmi cec
This commit is contained in:
committed by
Mecid Urganci
parent
7f2e9e8254
commit
14b94d16a2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user