Skip to content

Commit a00f414

Browse files
singalsumarc-hb
authored andcommitted
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 <seppo.ingalsuo@linux.intel.com>
1 parent 172d5a1 commit a00f414

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/tplgtool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def _enum_ctrl_parse(self, bytes_data):
149149
SOC_TPLG_MAX_CHAN = 8
150150
for idx in range(SOC_TPLG_MAX_CHAN):
151151
channel.append(self._tplg_chan_parse(bytes_data[8+idx*16: 24+idx*16]))
152-
print(24+idx*16)
152+
153153
values.append(channel)
154154
# item, mask, count
155155
values.append(struct.unpack("I",bytes_data[136:140])[0])
@@ -160,7 +160,7 @@ def _enum_ctrl_parse(self, bytes_data):
160160
texts = []
161161
for idx in range(SOC_TPLG_NUM_TEXTS):
162162
texts.append(self._parse_char_array(bytes_data[148+idx*44: 192+idx*44]))
163-
print(192+44*idx)
163+
164164
values.append(texts)
165165

166166
# values field in struct snd_soc_tplg_enum_control

0 commit comments

Comments
 (0)