]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: codecs: wcd93xxx: remove code duplication
authorMark Brown <broonie@kernel.org>
Fri, 19 Sep 2025 13:27:28 +0000 (14:27 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 19 Sep 2025 13:27:28 +0000 (14:27 +0100)
commit309e94a64b61d1b18a0d0d83de4bf2d2582708ce
tree1ccb7d6bbbd09559fd60a1069884f0f7e108d472
parentdfe3de7b5abe194f422dd92cf18fb5678fb918a7
parent0266f9541038b9b98ddd387132b5bdfe32a304e3
ASoC: codecs: wcd93xxx: remove code duplication

Merge series from Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>:

All the Qualcomm WCD codecs and WCD based codecs have lots of code in
common, resulting in lot of duplicate code.
This series is an attempt to clean some of this by moving the common
code to wcd-common library or to soundwire helper functions.

Currently I have done cleanups for 4 codecs wcd934x, wcd937x, wcd938x
and wcd939x, however any new Qualcomm codecs can avoid this duplication
by using the wcd-common library.

I have also added two helpers of_sdw_find_device_by_node() and
sdw_slave_get_current_bank() in soundwire layer for the codecs to use them,
this series was already acked by Soundwire maintainer Vinod.

As original cleanup series was depending on the new soundwire interfaces
I have combined both the series as they are cleaning up code
duplications.

As am touching the same codec drivers, 2 bug fixes are also added at the
start of the series.

There is still lot of code that is duplicate, but this is just a
starting point for such cleanups.

I have tested this on T14s, any testing is appreciated.
sound/soc/codecs/Kconfig
sound/soc/codecs/Makefile