]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: codecs: wcd937x: Add static channel mapping support in wcd937x-sdw
authorMohammad Rafi Shaik <quic_mohs@quicinc.com>
Thu, 6 Feb 2025 11:22:23 +0000 (16:52 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 6 Feb 2025 11:49:21 +0000 (11:49 +0000)
commitc06c4f7cbea1d8dc71485bfddef2849a1b721e67
tree28646bc7d8572a2e637420ca1b05d765e0775193
parent72826381215e2f9d2bd2f32f63f76a80942b7fdf
ASoC: codecs: wcd937x: Add static channel mapping support in wcd937x-sdw

Add static channel mapping between master and slave ports in wcd937x-sdw
driver.

Currently, the channel mask for each soundwire port is hardcoded in the
wcd937x-sdw driver, and the same channel mask value is configured in the
soundwire master.

The Qualcomm boards like the QCM6490-IDP require different channel mask
settings for the soundwire master and slave ports.

Implemented logic to read TX/RX channel mappings from device tree
properties (qcom,tx-channel-mapping and qcom,rx-channel-mapping).

Modified the wcd937x_connect_port to handle master channel masks during
port enable/disable operations.

Added wcd937x_get_channel_map api to retrieve the current master
channel map for TX and RX paths.

Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Link: https://patch.msgid.link/20250206112225.3270400-3-quic_mohs@quicinc.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd937x-sdw.c
sound/soc/codecs/wcd937x.c
sound/soc/codecs/wcd937x.h