Skip to contentSkip to conversation

ASoC: codecs: lpass-macro: fix missing codec version

PATCH In review Johan Hovold 3 participants 3 messages Jul 29, 2024 – Aug 5, 2024

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: codecs: lpass-macro: fix missing codec version

Recent changes that started checking the codec version broke audio on the Lenovo ThinkPad X13s:

wsa_macro 3240000.codec: Unsupported Codec version (0) wsa_macro 3240000.codec: probe with driver wsa_macro failed with error -22 rx_macro 3200000.rxmacro: Unsupported Codec version (0) rx_macro 3200000.rxmacro: probe with driver rx_macro failed with error -22

Add the missing codec version to the lookup table so that the codec drivers probe successfully.

Note that I'm just assuming that this is a 2.0 codec based on the fact that this device uses the older register layout.

Fixes 378918d59181 ("ASoC: codecs: lpass-macro: add helpers to get codec version")
Fixes dbacef05898d ("ASoC: codec: lpass-rx-macro: prepare driver to accomdate new codec versions")
Fixes 727de4fbc546 ("ASoC: codecs: lpass-wsa-macro: Correct support for newer v2.5 version")

---
Cc: [email protected]
#regzbot introduced: 378918d59181

 sound/soc/codecs/lpass-va-macro.c | 2 ++
 1 file changed, 2 insertions(+)
sound/soc/codecs/lpass-va-macro.c +2 -0
index b852cc7ffad9..a62ccd09bacd 100644
@@ -1472,6 +1472,8 @@ static void va_macro_set_lpass_codec_version(struct va_macro *va)
 
 	if ((core_id_0 == 0x01) && (core_id_1 == 0x0F))
 		version = LPASS_CODEC_VERSION_2_0;
+	if ((core_id_0 == 0x02) && (core_id_1 == 0x0F) && core_id_2 == 0x01)
+		version = LPASS_CODEC_VERSION_2_0;
 	if ((core_id_0 == 0x02) && (core_id_1 == 0x0E))
 		version = LPASS_CODEC_VERSION_2_1;
 	if ((core_id_0 == 0x02) && (core_id_1 == 0x0F) && (core_id_2 == 0x50 || core_id_2 == 0x51))
Signature · 1 line
2.44.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Johan Hovold

Recent changes that started checking the codec version broke audio on the Lenovo ThinkPad X13s:

wsa_macro 3240000.codec: Unsupported Codec version (0) wsa_macro 3240000.codec: probe with driver wsa_macro failed with error -22 rx_macro 3200000.rxmacro: Unsupported Codec version (0) rx_macro 3200000.rxmacro: probe with driver rx_macro failed with error -22

Add the missing codec version to the lookup table so that the codec drivers probe successfully.

Quoted 7 lines

Note that I'm just assuming that this is a 2.0 codec based on the fact that this device uses the older register layout.

Fixes 378918d59181 ("ASoC: codecs: lpass-macro: add helpers to get codec version")
Fixes dbacef05898d ("ASoC: codec: lpass-rx-macro: prepare driver to accomdate new codec versions")
Fixes 727de4fbc546 ("ASoC: codecs: lpass-wsa-macro: Correct support for newer v2.5 version")

Best regards,
Krzysztof

maintainer
#2 lore raw
In reply to Johan Hovold
Quoted 9 lines · Johan Hovold

Recent changes that started checking the codec version broke audio on the Lenovo ThinkPad X13s:

wsa_macro 3240000.codec: Unsupported Codec version (0) wsa_macro 3240000.codec: probe with driver wsa_macro failed with error -22 rx_macro 3200000.rxmacro: Unsupported Codec version (0) rx_macro 3200000.rxmacro: probe with driver rx_macro failed with error -22

[...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: codecs: lpass-macro: fix missing codec version

      commit: 9a1af1e218779724ff29ca75f2b9397dc3ed11e7

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark