soundwire: qcom: Restore and fix set_channel_map support for SWR master
Get series with b4
b4 am 20261105-soundwire_channel_map-v2-0-5efe2021552a@oss.qualcomm.com change-id 20261105-soundwire_channel_map-e3fb482c04cbVersions newest first · linked by author and title
- v2 Latest2 patches 0 repliesNew
- v12 patches 2 repliesSuperseded
Changes in v2 from the cover letter
- Removed the set_stream hack from the SDM845 machine driver.
- Link to v1: https://lore.kernel.org/all/[email protected]/
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ASoC: qcom: sdm845: apply the SLIMbus channel map to wcd934x onlysound/ | +16 | 0 replies | |
| 2/2 | soundwire: qcom: Add set_channel_map support to SWR master DAIdrivers/ | +54 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/2] soundwire: qcom: Restore and fix set_channel_map support for SWR master
The original support for set_channel_map in the Qualcomm SoundWire master commit 7796c97df6b1 ("soundwire: qcom: Add set_channel_map api support") was reverted due to multiple issues reported on sdm845 board, including kernel crashes and data structure corruption. The root causes included incorrect port indexing, array size mismatches, and improper handling of TX/RX channel information. This series reintroduces set_channel_map support with a corrected and safer implementation, and fixes the sdm845 machine driver to avoid misuse ofthe API.
Add a robust qcom_swrm_set_channel_map() implementation that stores per-port TX/RX channel masks safely under controller lock. Ensure the configuration is only applied to valid ports and does not corrupt memory or overwrite unrelated data. Preserve existing behavior for ports that do not use set_channel_map, by falling back to the default SoundWire stream configuration. Fix the sdm845 machine driver to avoid applying SLIMbus channel maps to SoundWire DAIs.
---
Changes in v2:
- Removed the set_stream hack from the SDM845 machine driver.
- Link to v1: https://lore.kernel.org/all/[email protected]/
To: Srinivas Kandagatla <[email protected]>
To: Liam Girdwood <[email protected]>
To: Mark Brown <[email protected]>
To: Jaroslav Kysela <[email protected]>
To: Takashi Iwai <[email protected]>
To: Vinod Koul <[email protected]>
To: Bard Liao <[email protected]>
To: Pierre-Louis Bossart <[email protected]>
To: Mohammad Rafi Shaik <[email protected]>
cc: Yongqin Liu <[email protected]>
cc: Jie Gan <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
Mohammad Rafi Shaik (2):
ASoC: qcom: sdm845: apply the SLIMbus channel map to wcd934x only
soundwire: qcom: Add set_channel_map support to SWR master DAI
drivers/soundwire/qcom.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ sound/soc/qcom/sdm845.c | 16 ++++++++++++++ 2 files changed, 70 insertions(+)
---
base-commit: 8b7179210b22f8e48a82c5ceacb9d56a9c4cfec4
change-id: 20261105-soundwire_channel_map-e3fb482c04cb
Best regards,
Signature · 1 line
Mohammad Rafi Shaik <[email protected]>