Skip to content

Commit

Permalink
Tools: Tplgtool: Remove debug print of array indices
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
singalsu authored and marc-hb committed Sep 10, 2024
1 parent 172d5a1 commit a00f414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/tplgtool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand All @@ -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
Expand Down

0 comments on commit a00f414

Please sign in to comment.