Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

component: pipeline: Refactor direction testing in pipeline propagation #8620

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

andyross
Copy link
Contributor

[Split out from https://github.com//pull/8571 for separate review]

Clean up some cut/paste code that had spread around, replacing it with a simpler "comp_same_dir()" predicate. No behavioral changes, just refactoring.

Also remove the big comment that was repeated in triplicate. It explained this as error handling (i.e. it must be broken topology from which we want to recover), but in fact cross-pipeline widget connections in modern SOF do run in opposite directions (c.f. echo cancellation, which need to look at the output stream to process microphone input, or smart amp devices that do the reverse).

So just explain it as policy: we don't propagate across opposite-direction pipelines, period. Usages that need them need to manage their pipeline lifecycles manually.

Clean up some cut/paste code that had spread around, replacing it with
a simpler "comp_same_dir()" predicate.  No behavioral changes, just
refactoring.

Also remove the big comment that was repeated in triplicate.  It
explained this as error handling (i.e. it must be broken topology from
which we want to recover), but in fact cross-pipeline widget
connections in modern SOF do run in opposite directions (c.f. echo
cancellation, which need to look at the output stream to process
microphone input, or smart amp devices that do the reverse).

So just explain it as policy: we don't propagate across
opposite-direction pipelines, period.  Usages that need them need to
manage their pipeline lifecycles manually.

Signed-off-by: Andy Ross <andyross@google.com>
@kv2019i kv2019i requested review from a team December 13, 2023 18:43
@marc-hb

This comment was marked as outdated.

@marc-hb
Copy link
Collaborator

marc-hb commented Dec 14, 2023

Many git fetch failures in https://sof-ci.01.org/sof-pr-viewer/#/build/PR8620/build13274310 which means this PR was mostly not tested.

@lrudyX , @wszypelt these git failures have become very frequent. Is this using the right proxy?

BTW there are a few west & git optimizations that would reduce impact and downtimes:

11:41:55,664 INFO  - fatal: the remote end hung up unexpectedly
11:41:55,664 INFO  - fatal: early EOF
11:41:55,666 INFO  - fatal: index-pack failed

Copy link
Contributor

@btian1 btian1 left a comment

Choose a reason for hiding this comment

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

no logic change, just refactor.

@kv2019i kv2019i merged commit 7e5d40a into thesofproject:main Dec 15, 2023
42 of 44 checks passed
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.

7 participants