Skip to content

tools: add component searching logic for tplgtool - #10

Merged
xiulipan merged 1 commit into
thesofproject:masterfrom
aiChaoSONG:tplgtool
Feb 21, 2020
Merged

xiulipan merged 1 commit into
thesofproject:masterfrom
aiChaoSONG:tplgtool

Conversation

@aiChaoSONG

@aiChaoSONG aiChaoSONG commented Dec 19, 2019 •

Copy link
Copy Markdown

This patch adds component searching logic, thus, we can
get some type of components connected to a specified
component.

Based on the searching logic above, add a function to find
componnets connected to PCM, for example, PGA and EQ.

@aiChaoSONG
aiChaoSONG force-pushed the tplgtool branch 2 times, most recently from e370a31 to dacfd8e Compare December 19, 2019 07:54
@aiChaoSONG

Copy link
Copy Markdown
Author

This is a big feature, please help to review @xiulipan @Bin-QA.

@xiulipan xiulipan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got some question about the logic you used to get the PGA list. I think we can not get the split PGA widget from playback and capture PCM.

I think we should have some structure like this in your graph.
EG: a playback graph list for PCM0P
[PCM0P, BUF1.0, PGA1.0, BUF1.1, MIXER1.0, BUF1.2, PGA1.1, BUF1.3]
Then when you try to check what PCM0P have, it would be very easy to go through the list to get the MIXER, and PGA

Please try to change that part logic to make easy to understand and for future usage

Comment thread tools/tplgtool.py Resolved
Comment thread tools/tplgtool.py Resolved
@aiChaoSONG
aiChaoSONG force-pushed the tplgtool branch 2 times, most recently from 7c9a896 to 910f243 Compare January 6, 2020 07:06
@aiChaoSONG

aiChaoSONG commented Jan 6, 2020 •

Copy link
Copy Markdown
Author

@Bin-QA @xiulipan generalize searching function, now we can find any type of component connect to another component. Please help to review, this PR takes too long time, I am afraid it can't be merged if master has changed so much.

Comment thread tools/tplgtool.py Resolved
Comment thread tools/tplgtool.py Resolved
@aiChaoSONG
aiChaoSONG force-pushed the tplgtool branch 2 times, most recently from 3317e1d to 4667cf3 Compare February 11, 2020 04:01
@aiChaoSONG aiChaoSONG changed the title tools: add PGA support for tplgtool tools: add component searching logic for tplgtool Feb 11, 2020
@aiChaoSONG

Copy link
Copy Markdown
Author

@xiulipan @Bin-QA repushed,please review. and we still need to make some change to sof-tplgreader.py. will do it as soon as this pr merged

Comment thread tools/tplgtool.py Resolved
Comment thread tools/tplgtool.py Resolved
Comment thread tools/tplgtool.py Resolved
Comment thread tools/tplgtool.py Resolved
Comment thread tools/tplgtool.py Resolved
Comment thread tools/tplgtool.py Resolved
Comment thread tools/tplgtool.py Resolved
Comment thread tools/tplgtool.py Resolved
Comment thread tools/tplgtool.py Resolved
Comment thread tools/tplgtool.py Resolved
@aiChaoSONG
aiChaoSONG force-pushed the tplgtool branch 2 times, most recently from 8608b25 to 04a3525 Compare February 12, 2020 06:17
xiulipan
xiulipan previously approved these changes Feb 13, 2020

@xiulipan xiulipan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some simple qustion, please add some comments in the README or comments of the tool.

Comment thread tools/tplgtool.py Resolved
Bin-QA
Bin-QA previously approved these changes Feb 20, 2020

@Bin-QA Bin-QA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xiulipan

Copy link
Copy Markdown
Contributor

@aiChaoSONG Could you help to rebase this patch for merge?

xiulipan
xiulipan previously approved these changes Feb 21, 2020
This patch adds component searching logic, thus, we can
get some type of components connected to a specified
component.

Based on the searching logic above, add a function to find
componnets connected to PCM, for example, PGA and EQ.

Signed-off-by: Amery Song <chao.song@intel.com>
@aiChaoSONG

Copy link
Copy Markdown
Author

@xiulipan @Bin-QA with github's web conflict tool, seems still cannot merge after resolve conflict. I rewrite the code change based on master. it should be totally resolved now. Please reapprove again, then we can get this pr merged. Thanks.

@xiulipan
xiulipan merged commit 2df5f0d into thesofproject:master Feb 21, 2020
@aiChaoSONG
aiChaoSONG deleted the tplgtool branch October 24, 2022 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants