Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: codecs: warn on unknown codec version

Merge series from Dmitry Baryshkov <dmitry.baryshkov@linaro.org>:

While debugging broken audio issues on some of Qualcomm platforms I
stumbled upon the kernel not providing the actual error information.
It prints an error from the wsa_macro driver, but the actual issue is in
the VA macro driver. Add error message to point to the actual error
location.

va_macro 3370000.codec: Unknown VA Codec version, ID: 00 / 0f / 00
wsa_macro 3240000.codec: Unsupported Codec version (0)

+10
+6
sound/soc/codecs/lpass-macro-common.h
··· 49 49 static inline const char *lpass_macro_get_codec_version_string(int version) 50 50 { 51 51 switch (version) { 52 + case LPASS_CODEC_VERSION_1_0: 53 + return "v1.0"; 54 + case LPASS_CODEC_VERSION_1_1: 55 + return "v1.1"; 56 + case LPASS_CODEC_VERSION_1_2: 57 + return "v1.2"; 52 58 case LPASS_CODEC_VERSION_2_0: 53 59 return "v2.0"; 54 60 case LPASS_CODEC_VERSION_2_1:
+4
sound/soc/codecs/lpass-va-macro.c
··· 1485 1485 if ((core_id_0 == 0x02) && (core_id_1 == 0x0F) && (core_id_2 == 0x80 || core_id_2 == 0x81)) 1486 1486 version = LPASS_CODEC_VERSION_2_8; 1487 1487 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 + 1488 1492 lpass_macro_set_codec_version(version); 1489 1493 1490 1494 dev_dbg(va->dev, "LPASS Codec Version %s\n", lpass_macro_get_codec_version_string(version));