From a00f414d584006b150ce72fc14c54cfb1d551d17 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Tue, 10 Sep 2024 17:45:42 +0300 Subject: [PATCH] Tools: Tplgtool: Remove debug print of array indices When parsing a topology with sof-tplgreader.py the output with topology file as command line argument should produce the list of PCMs found in the topology. However when encountering a topology with enum controls, there are numbers printed before the desired PCMs output. The printing of the 24 array index values (24, 30, 56, ..., 852) is there apparently for debugging the code. It is causing case-lib/pipeline.sh to fail and cause false failures of CI test cases. This patch simply removes the print commands. Signed-off-by: Seppo Ingalsuo --- tools/tplgtool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tplgtool.py b/tools/tplgtool.py index 3ae6150a..ff37bcb5 100755 --- a/tools/tplgtool.py +++ b/tools/tplgtool.py @@ -149,7 +149,7 @@ def _enum_ctrl_parse(self, bytes_data): SOC_TPLG_MAX_CHAN = 8 for idx in range(SOC_TPLG_MAX_CHAN): channel.append(self._tplg_chan_parse(bytes_data[8+idx*16: 24+idx*16])) - print(24+idx*16) + values.append(channel) # item, mask, count values.append(struct.unpack("I",bytes_data[136:140])[0]) @@ -160,7 +160,7 @@ def _enum_ctrl_parse(self, bytes_data): texts = [] for idx in range(SOC_TPLG_NUM_TEXTS): texts.append(self._parse_char_array(bytes_data[148+idx*44: 192+idx*44])) - print(192+44*idx) + values.append(texts) # values field in struct snd_soc_tplg_enum_control