Skip to content

FROMLIST: drm/msm/dp: return 0 from audio_prepare when cable is disconnected#1404

Open
kumarsingh-art wants to merge 1 commit into
qualcomm-linux:tech/mm/drmfrom
kumarsingh-art:topic/dp_pipewire_0.0
Open

FROMLIST: drm/msm/dp: return 0 from audio_prepare when cable is disconnected#1404
kumarsingh-art wants to merge 1 commit into
qualcomm-linux:tech/mm/drmfrom
kumarsingh-art:topic/dp_pipewire_0.0

Conversation

@kumarsingh-art

Copy link
Copy Markdown

PipeWire treats a non-zero return from prepare as fatal, marking the DP audio device as a dummy sink when the cable is unplugged. The active_stream_cnt guard already prevents any unclocked hardware access, so return success instead of -EINVAL when the link is not active.

Upstream uses variable of power_on while 0.0 kernel uses active_stream_cnt. Hence we use the active_stream_cnt in the current pull request.

Link: https://lore.kernel.org/all/20260616151252.3599089-2-kumar.singh@oss.qualcomm.com/
CRs-Fixed: 4582751

…nnected

PipeWire treats a non-zero return from prepare as fatal, marking the
DP audio device as a dummy sink when the cable is unplugged. The
active_stream_cnt guard already prevents any unclocked hardware access,
so return success instead of -EINVAL when the link is not active.

Upstream uses variable of power_on while 0.0 kernel uses active_stream_cnt.
Hence we use the active_stream_cnt in the current pull request.

Link: https://lore.kernel.org/all/20260616151252.3599089-2-kumar.singh@oss.qualcomm.com/
Signed-off-by: Kumar Anurag <kumar.singh@oss.qualcomm.com>
@qcomlnxci qcomlnxci requested review from a team, quic-rajeshk and riteshk-quic and removed request for a team June 29, 2026 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants