]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: codecs: wcd: add common helper for wcd codecs
authorSrinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Tue, 9 Sep 2025 12:19:48 +0000 (13:19 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 18 Sep 2025 21:24:30 +0000 (22:24 +0100)
commit4f16b6351bbff629e1a2a9d902b96210a50d65f0
tree5211949d6ea9060654f793fc5713f3f05e4a5c8f
parent45a3295a3005f7782054a153312ba81d28eb7664
ASoC: codecs: wcd: add common helper for wcd codecs

All the Qualcomm WCD codecs have most of its code duplicated across all
these 3/4 drivers. This is an attempt to remove those duplicate
parts by adding a common helper library for these codecs.

To start with move all the micbias parsing and voltage settings these
are identical in WCD934x, WCD937x, WCD938x and WCD939x codec driver.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://patch.msgid.link/20250909121954.225833-8-srinivas.kandagatla@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/Kconfig
sound/soc/codecs/Makefile
sound/soc/codecs/wcd-common.c [new file with mode: 0644]
sound/soc/codecs/wcd-common.h [new file with mode: 0644]
sound/soc/codecs/wcd934x.c
sound/soc/codecs/wcd937x.c
sound/soc/codecs/wcd938x.c
sound/soc/codecs/wcd939x.c