Skip to content

Commit

Permalink
tplgtool2.py: show widget CPC in topology graph
Browse files Browse the repository at this point in the history
This patch adds support to show widget CPC value
int topology graph.

Signed-off-by: Chao Song <[email protected]>
  • Loading branch information
Chao Song committed Sep 6, 2023
1 parent e30c574 commit 61948f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/tplgtool2.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ class SofVendorToken(enum.IntEnum):
SOF_TKN_COMP_FORMAT = 402
SOF_TKN_COMP_CORE_ID = 404
SOF_TKN_COMP_UUID = 405
SOF_TKN_COMP_CPC = 406
# sof_ssp_tokens
SOF_TKN_INTEL_SSP_CLKS_CONTROL = 500
SOF_TKN_INTEL_SSP_MCLK_ID = 501
Expand Down Expand Up @@ -923,6 +924,9 @@ def _display_node_attrs(self, name: str, widget: Container):
self.show_core == 'auto' and self._tplg.has_core_differences
):
sublabel2 += f'<BR ALIGN="CENTER"/><SUB>core:{core}</SUB>'
comp_cpc = GroupedTplg.get_widget_token_value(widget, SofVendorToken.SOF_TKN_COMP_CPC)
if comp_cpc is not None:
sublabel2 += f'<BR ALIGN="CENTER"/><SUB>cpc:{comp_cpc}</SUB>'
display_name = name
wname = widget.widget.name
# See the *_NUM_REGEX above
Expand Down

0 comments on commit 61948f5

Please sign in to comment.