Skip to content

Commit a9a7a2d

Browse files
lumagbroonie
authored andcommitted
ASoC: codecs: lpass-va-macro: warn on unknown version
Warn the users if the driver doesn't know the codec version. This helps in debugging the issues with other codec not detecting the correct version. va_macro 3370000.codec: Unknown VA Codec version, ID: 00 / 0f / 00 Signed-off-by: Dmitry Baryshkov <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 49f6202 commit a9a7a2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,6 +1485,10 @@ static void va_macro_set_lpass_codec_version(struct va_macro *va)
14851485
if ((core_id_0 == 0x02) && (core_id_1 == 0x0F) && (core_id_2 == 0x80 || core_id_2 == 0x81))
14861486
version = LPASS_CODEC_VERSION_2_8;
14871487

1488+
if (version == LPASS_CODEC_VERSION_UNKNOWN)
1489+
dev_warn(va->dev, "Unknown Codec version, ID: %02x / %02x / %02x\n",
1490+
core_id_0, core_id_1, core_id_2);
1491+
14881492
lpass_macro_set_codec_version(version);
14891493

14901494
dev_dbg(va->dev, "LPASS Codec Version %s\n", lpass_macro_get_codec_version_string(version));

0 commit comments

Comments
 (0)