From e6364d6cc06f7388037bb91991d0b25431cac386 Mon Sep 17 00:00:00 2001 From: Salendarsingh Gaud Date: Fri, 17 Jul 2026 12:20:03 +0530 Subject: [PATCH] Revert "FROMLIST: drm/msm/dp: return 0 from audio_prepare when cable is disconnected" Commit is NAKed in upstream, so reverting for now. This reverts commit c3e22773a5465c909550fc64c903bc98a0b6cf9d. Signed-off-by: Salendarsingh Gaud --- drivers/gpu/drm/msm/dp/dp_audio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dp/dp_audio.c b/drivers/gpu/drm/msm/dp/dp_audio.c index 8118130a3220f..035e230201fd9 100644 --- a/drivers/gpu/drm/msm/dp/dp_audio.c +++ b/drivers/gpu/drm/msm/dp/dp_audio.c @@ -284,8 +284,10 @@ int msm_dp_audio_prepare(struct drm_bridge *bridge, * such cases check for connection status and bail out if not * connected. */ - if (!msm_dp_display->active_stream_cnt) + if (!msm_dp_display->active_stream_cnt) { + rc = -EINVAL; goto end; + } audio = msm_dp_audio_get_data(msm_dp_display); if (IS_ERR(audio)) {