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 CEC on rk356X on tv restart (#149)
This commit is contained in:
@@ -364,6 +364,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,
|
||||
|
||||
Reference in New Issue
Block a user