Skip to content

Conversation

@kv2019i
Copy link
Collaborator

@kv2019i kv2019i commented Feb 14, 2023

No description provided.

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>
@kv2019i kv2019i force-pushed the 202302-tplg-add-capture-be-pipe branch from 837ecfd to 232ed97 Compare February 14, 2023 13:28
@lgirdwood
Copy link
Member

@ranj063 @juimonen pls review.

<include/components/copier.conf>
<include/components/pipeline.conf>

Class.Pipeline."passthrough-capture-be" {
Copy link
Collaborator

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?

Copy link
Collaborator Author

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?

Copy link
Member

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>
@kv2019i kv2019i force-pushed the 202302-tplg-add-capture-be-pipe branch from 232ed97 to 855719d Compare February 14, 2023 18:19
@kv2019i kv2019i changed the title 202302 tplg add capture be pipe topology2: use passthrough-capture-be instead of passthrough-be Feb 14, 2023
@kv2019i
Copy link
Collaborator Author

kv2019i commented Feb 14, 2023

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:
Copy link
Collaborator Author

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.

Copy link
Member

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.

@greg-intel
Copy link
Contributor

greg-intel commented Feb 14, 2023

SOFCI TEST

Current build results (all green):
https://sof-ci.01.org/sofpr/PR7091/build3925/devicetest/index.html

Previous build results:
https://sof-ci.01.org/sofpr/PR7091/build3923/devicetest/index.html
(One device missing)

# 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:
Copy link
Member

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" {
Copy link
Member

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.

Copy link
Collaborator

@lyakh lyakh left a 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?

@ranj063
Copy link
Collaborator

ranj063 commented Feb 15, 2023

do we actually then need passthrough-be?

Yes, it is used for the playback cases

@kv2019i kv2019i merged commit cfeaceb into thesofproject:main Feb 15, 2023
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.

5 participants