diff --git a/projects/Allwinner/patches/linux/0049-drm-sun4i-dw-hdmi-Switch-to-bridge-functions.patch b/projects/Allwinner/patches/linux/0049-drm-sun4i-dw-hdmi-Switch-to-bridge-functions.patch index 2d4a7396ef..85b3bd45a8 100644 --- a/projects/Allwinner/patches/linux/0049-drm-sun4i-dw-hdmi-Switch-to-bridge-functions.patch +++ b/projects/Allwinner/patches/linux/0049-drm-sun4i-dw-hdmi-Switch-to-bridge-functions.patch @@ -21,12 +21,13 @@ diff --git a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c b/drivers/gpu/drm/sun4i/sun8i index 8f8d3bdba5ce..93831cdf1917 100644 --- a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c +++ b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c -@@ -8,14 +8,82 @@ +@@ -8,14 +8,90 @@ #include #include +#include +#include ++#include #include #include #include @@ -61,16 +62,23 @@ index 8f8d3bdba5ce..93831cdf1917 100644 + enum drm_connector_status status) +{ + struct sun8i_dw_hdmi *hdmi = bridge_to_sun8i_dw_hdmi(bridge); -+ struct edid *edid; + + if (!hdmi->cec_notifier) + return; + + if (status == connector_status_connected) { -+ edid = drm_bridge_get_edid(hdmi->hdmi_bridge, hdmi->connector); -+ if (edid) -+ cec_notifier_set_phys_addr_from_edid(hdmi->cec_notifier, -+ edid); ++ const struct drm_edid *drm_edid; ++ const struct edid *edid; ++ ++ drm_edid = drm_bridge_edid_read(hdmi->hdmi_bridge, ++ hdmi->connector); ++ if (drm_edid) ++ return; ++ ++ edid = drm_edid_raw(drm_edid); ++ cec_notifier_set_phys_addr_from_edid(hdmi->cec_notifier, ++ edid); ++ drm_edid_free(drm_edid); + } else { + cec_notifier_phys_addr_invalidate(hdmi->cec_notifier); + } diff --git a/projects/Allwinner/patches/linux/0059-WIP-drm-sun4i-de3-Add-support-for-YUV420-output.patch b/projects/Allwinner/patches/linux/0059-WIP-drm-sun4i-de3-Add-support-for-YUV420-output.patch index cbe3990cf6..d00465e0e5 100644 --- a/projects/Allwinner/patches/linux/0059-WIP-drm-sun4i-de3-Add-support-for-YUV420-output.patch +++ b/projects/Allwinner/patches/linux/0059-WIP-drm-sun4i-de3-Add-support-for-YUV420-output.patch @@ -538,7 +538,7 @@ diff --git a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c b/drivers/gpu/drm/sun4i/sun8i index 22e084989ee6..0837e2576556 100644 --- a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c +++ b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c -@@ -7,18 +7,25 @@ +@@ -7,19 +7,26 @@ #include #include #include @@ -546,6 +546,7 @@ index 22e084989ee6..0837e2576556 100644 #include #include + #include #include #include #include