Skip to content

Commit 34f051a

Browse files
lategoodbye6by9
authored andcommitted
drm/vc4: hdmi: Call HDMI hotplug helper on disconnect
drm_atomic_helper_connector_hdmi_hotplug() must be called regardless of the connection status, otherwise the HDMI audio disconnect event won't be notified. Fixes: 2ea9ec5 ("drm/vc4: hdmi: use drm_atomic_helper_connector_hdmi_hotplug()") Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Stefan Wahren <wahrenst@gmx.net> Reviewed-by: Maxime Ripard <mripard@kernel.org> Signed-off-by: David Turner <david.turner@raspberrypi.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250317-vc4_hotplug-v4-2-2af625629186@raspberrypi.com Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent 0b87bbb commit 34f051a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/vc4/vc4_hdmi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,13 +372,13 @@ static void vc4_hdmi_handle_hotplug(struct vc4_hdmi *vc4_hdmi,
372372
* the lock for now.
373373
*/
374374

375+
drm_atomic_helper_connector_hdmi_hotplug(connector, status);
376+
375377
if (status == connector_status_disconnected) {
376378
cec_phys_addr_invalidate(vc4_hdmi->cec_adap);
377379
return;
378380
}
379381

380-
drm_atomic_helper_connector_hdmi_hotplug(connector, status);
381-
382382
cec_s_phys_addr(vc4_hdmi->cec_adap,
383383
connector->display_info.source_physical_address, false);
384384

0 commit comments

Comments
 (0)