Skip to content

Commit 49f6202

Browse files
lumagbroonie
authored andcommitted
ASoC: codecs: lpass-macro: fix version strings returned for 1.x codecs
Add missing cases to lpass_macro_get_codec_version_string() to let it print the correct codec version for 1.x codec platforms. Fixes: 378918d ("ASoC: codecs: lpass-macro: add helpers to get codec version") Signed-off-by: Dmitry Baryshkov <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent a44b7b5 commit 49f6202

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sound/soc/codecs/lpass-macro-common.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ static inline void lpass_macro_pds_exit_action(void *pds)
4949
static inline const char *lpass_macro_get_codec_version_string(int version)
5050
{
5151
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";
5258
case LPASS_CODEC_VERSION_2_0:
5359
return "v2.0";
5460
case LPASS_CODEC_VERSION_2_1:

0 commit comments

Comments
 (0)