]> www.infradead.org Git - users/dwmw2/linux.git/commit
ASoC: codecs: lpass-macro: add helpers to get codec version
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 13 Jun 2024 10:49:31 +0000 (11:49 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 14 Jun 2024 14:34:15 +0000 (15:34 +0100)
commit378918d5918116b95300dd7f03913a1d0841f223
tree962d3edbc48482deb638cb6c842bced654de9757
parent83a7eefedc9b56fe7bfeff13b6c7356688ffa670
ASoC: codecs: lpass-macro: add helpers to get codec version

LPASS Digital codec have changes in register layout across multiple
versions. Add a proper way read the codec version allowint all the lpass
macro drivers (tx, rx, wsa, va) to configure the registers correctly.

LPASS VA macro has the required registers to read the codec version.
Read the the version and make it available to other lpass codec macros
using the common helper functions.

Existing method of using LPASS IP version is not accurate as the same
the codec versioning is totally independent of LPASS IP block versions.

These helper functions should be able to provide a convient way to get
the codec version, and will help scale the drivers in right direction.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tested-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8650-HDK
Link: https://lore.kernel.org/r/20240612-lpass-codec-v25-v4-1-f63d3676dbc4@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/lpass-macro-common.c
sound/soc/codecs/lpass-macro-common.h
sound/soc/codecs/lpass-va-macro.c