Skip to content

FROMLIST: soundwire: qcom: Add set_channel_map support to SWR master DAI#783

Open
mohsRafi wants to merge 1 commit into
qualcomm-linux:qcom-6.18.yfrom
mohsRafi:Fix_headset_record_on_qcm6490
Open

FROMLIST: soundwire: qcom: Add set_channel_map support to SWR master DAI#783
mohsRafi wants to merge 1 commit into
qualcomm-linux:qcom-6.18.yfrom
mohsRafi:Fix_headset_record_on_qcm6490

Conversation

@mohsRafi

Copy link
Copy Markdown
Contributor

Add .set_channel_map support to the SWR master DAI so the ASoC layer can program per-port channel masks used by port_enable().

Fix several issues in channel map handling: clip programming to available ports to avoid out-of-bounds access, use 1-based port indexing, and store TX/RX masks separately. Also track per-direction validity and select the effective mask based on port role to avoid incorrect precedence and ensure full-width masks are preserved. Fall back to the SDW stream-provided channel mask when no mapping is configured, preserving existing behaviour.

Link: https://lore.kernel.org/all/20260629141633.86657-3-mohammad.rafi.shaik@oss.qualcomm.com/

CRs-Fixed: 4590627

Add .set_channel_map support to the SWR master DAI so the ASoC
layer can program per-port channel masks used by port_enable().

Fix several issues in channel map handling: clip programming to
available ports to avoid out-of-bounds access, use 1-based port
indexing, and store TX/RX masks separately. Also track per-direction
validity and select the effective mask based on port role to avoid
incorrect precedence and ensure full-width masks are preserved.
Fall back to the SDW stream-provided channel mask when no mapping is
configured, preserving existing behaviour.

Link: https://lore.kernel.org/all/20260629141633.86657-3-mohammad.rafi.shaik@oss.qualcomm.com/
Fixes: 7796c97 ("soundwire: qcom: Add set_channel_map api support")
Reported-by: Yongqin Liu <yongqin.liu@linaro.org>
Closes: https://lore.kernel.org/all/4ddd6855-3817-4dc4-81c4-d8ddaa039865@oss.qualcomm.com/
Reported-by: Jie Gan <jie.gan@oss.qualcomm.com>
Closes: https://lore.kernel.org/all/CAMSo37U1kJq_gK8jiW9iMbhHXtn=Chr7NawiK4fPUPj4kyqH2w@mail.gmail.com/
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/all/33fe8fe7-719a-405a-9ed2-d9f816ce1d57@sabinyo.mountain/
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
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.

1 participant