-
Notifications
You must be signed in to change notification settings - Fork 349
topology2: use passthrough-capture-be instead of passthrough-be #7091
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
topology2: use passthrough-capture-be instead of passthrough-be #7091
Conversation
Add a separate template for capture backend pipelines. The passthrough-be pipeline has been used as template for both playback and capture, but we want to provide different defaults especially for the audio formats in capture case. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
837ecfd to
232ed97
Compare
| <include/components/copier.conf> | ||
| <include/components/pipeline.conf> | ||
|
|
||
| Class.Pipeline."passthrough-capture-be" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kv2019i can we call this 32-bit-capture.conf explicitly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ranj063 well, it's not really limited to 32bit, users can add as many audio formats they want, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, lets give users a choice if possible. If not, we can hard code this later.
As the copier can do format conversions, and many pipeline components can do conversions as well, it is important for the topology to define a single format to use in the "dai_out" copier. This ensures deterministic behaviour with the driver. Implement this behaviour by switching topologies to use the passthrough-capture-be pipeline as template for the backend capture pipelines. The previously used passthrough-be template is problematic as the base class already defines multiple audio formats, with multiple different sample formats. The new passthrough-capture-be only defines one sample format by default and is a better starting point as a base class. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
232ed97 to
855719d
Compare
|
V2 (Feb 14):
|
| # All attributes defined herein are namespaced by alsatplg to | ||
| # "Object.Pipeline.passthrough-be-capture.N.attribute_name" | ||
| # | ||
| # Usage: mixin-playback pipeline object can be instantiated as: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, copy'n'paste error in the doc, will fix in later version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix incrementally in another PR.
|
SOFCI TEST Current build results (all green): Previous build results: |
| # All attributes defined herein are namespaced by alsatplg to | ||
| # "Object.Pipeline.passthrough-be-capture.N.attribute_name" | ||
| # | ||
| # Usage: mixin-playback pipeline object can be instantiated as: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix incrementally in another PR.
| <include/components/copier.conf> | ||
| <include/components/pipeline.conf> | ||
|
|
||
| Class.Pipeline."passthrough-capture-be" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, lets give users a choice if possible. If not, we can hard code this later.
lyakh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we actually then need passthrough-be?
Yes, it is used for the playback cases |
No description provided.