Skip to content

Commit 9a1af1e

Browse files
jhovoldbroonie
authored andcommitted
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: 378918d ("ASoC: codecs: lpass-macro: add helpers to get codec version") Fixes: dbacef0 ("ASoC: codec: lpass-rx-macro: prepare driver to accomdate new codec versions") Fixes: 727de4f ("ASoC: codecs: lpass-wsa-macro: Correct support for newer v2.5 version") Signed-off-by: Johan Hovold <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent dc26808 commit 9a1af1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/soc/codecs/lpass-va-macro.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,6 +1472,8 @@ static void va_macro_set_lpass_codec_version(struct va_macro *va)
14721472

14731473
if ((core_id_0 == 0x01) && (core_id_1 == 0x0F))
14741474
version = LPASS_CODEC_VERSION_2_0;
1475+
if ((core_id_0 == 0x02) && (core_id_1 == 0x0F) && core_id_2 == 0x01)
1476+
version = LPASS_CODEC_VERSION_2_0;
14751477
if ((core_id_0 == 0x02) && (core_id_1 == 0x0E))
14761478
version = LPASS_CODEC_VERSION_2_1;
14771479
if ((core_id_0 == 0x02) && (core_id_1 == 0x0F) && (core_id_2 == 0x50 || core_id_2 == 0x51))

0 commit comments

Comments
 (0)