]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: codecs: lpass-va-macro: set the default codec version for sm8250
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 16 Aug 2024 09:12:10 +0000 (10:12 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 30 Aug 2024 12:54:24 +0000 (13:54 +0100)
commit77212f300bfd6fb3edaabd1daf863cabb521854a
treea6bdd92489eae9037c8d42540254a1cf508d446b
parent3e83957e8dd7433a69116780d9bad217b00913ea
ASoC: codecs: lpass-va-macro: set the default codec version for sm8250

sm8250 and sc7280 have lpass codec version 1.0, as these are very old
platforms, they do not have a reliable way to get the codec version
from core_id registers.

On codec versions below 2.0, even though the core_id registers are
available to read, the values of these registers are not unique to be
able to determine the version of the codec dynamically.

Add the version info into of_data, so that driver does not need to use
core_id registers to get version number for such situations.

Fixes: 378918d59181 ("ASoC: codecs: lpass-macro: add helpers to get codec version")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tested-by: Amit Pundir <amit.pundir@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Link: https://patch.msgid.link/20240816091210.50172-1-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/lpass-va-macro.c