]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: codecs: va-macro: Rework version checking
authorKonrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Wed, 15 Oct 2025 07:57:15 +0000 (13:27 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 16 Oct 2025 15:33:44 +0000 (16:33 +0100)
commit281c97376cfcfc8cef4f5ed5dd961a1b39f5a25e
treede48f66d3554c44b7855130151a6f60f6774151a
parent6621b0f118d500092f5f3d72ddddb22aeeb3c3a0
ASoC: codecs: va-macro: Rework version checking

Open-code some of the registers to make the checks anywhere near human-
readable. Error out if the version is unsupported or if the VA macro
isn't supposed to be present within this LPASS instance (since we can
check for that now).

Note that previously v2.0 and v2.1 assignments were swapped, but v2.1
does not even seem to exist (as opposed to v2.0.1) and there is no
difference in SW handling anyway.

[Prasad Kumpatla: fixed a spelling error and resolved a checkpatch
warning related to return value handling]

Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Jingyi Wang <jingyi.wang@oss.qualcomm.com>
Signed-off-by: Prasad Kumpatla <prasad.kumpatla@oss.qualcomm.com>
Link: https://patch.msgid.link/20251015-knp-audio-v2-v3-1-e0e3e4167d87@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/lpass-va-macro.c