]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Add static channel mapping between soundwire master
authorMark Brown <broonie@kernel.org>
Thu, 6 Feb 2025 20:45:03 +0000 (20:45 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 6 Feb 2025 20:45:03 +0000 (20:45 +0000)
commit46ab7d80ed4f378e02cb249bd49a76026a2d683f
treed95975f1a4a1deb81d4b33b65413c6e190c1c80e
parentf0703ce627a25b4a1307d8a92cfd6d6bf7e27e7a
parent0e9a970d7b2cb98d741bc0e32ad8c8f30c009c63
Add static channel mapping between soundwire master

Merge series from Mohammad Rafi Shaik <quic_mohs@quicinc.com>:

Add static channel map support between soundwire master and slave.

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

The Qualcomm board like the QCM6490-IDP require static channel map
settings for the soundwire master and slave ports.

If another boards which are using enable wcd937x, the channel mapping
index values between master and slave may be different depending on the
board hw design and requirements. If the above properties are not used
in a SoC specific device tree, the channel mapping index values are set
to default.

With the introduction of the following channel mapping properties, it is
now possible to configure the master channel mapping directly from the
device tree.

Added qcom_swrm_set_channel_map api to set the master channel values
which allows more flexible to configure channel values in runtime for
specific active soundwire ports.

Add get and set channel maps support from codec to cpu dais in common
Qualcomm sdw driver.