Repository navigation
topology2: cleanup basic definitions #7319
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
Changes from all commits
8ee15fc
0df521e
1eb451d
7b8e739
97a18bf
f4553d7
5a8afd5
92fca43
8b9eb98
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,7 +47,7 @@ Class.Pipeline."mixout-gain-dai-copier-playback" { | |
| Object.Widget { | ||
| mixout."1" {} | ||
| copier."1" { | ||
| type dai_in | ||
| type dai_out | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure about this one @plbossart . I think you made too many changes in this PR that are not correct and you've got failures left, right & center. It might be a good idea to go step by step and separate the clean ups one by one
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I asked about the conventions, and playback meant dai_out. If this is not correct, I don't know what the rules are any longer. |
||
| node_type $HDA_LINK_OUTPUT_CLASS | ||
| period_sink_count 0 | ||
| period_source_count 2 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,9 +16,9 @@ | |
| # Where N is the unique pipeline ID within the same alsaconf node. | ||
| # | ||
|
|
||
| <include/common/audio_format.conf> | ||
| <include/components/copier.conf> | ||
| <include/components/pipeline.conf> | ||
| <include/common/audio_format.conf> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this an unrelated change? the original order is in alphabetical order no?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's to align passthrough-capture and passthrough-playback. One of them doesn't follow the convention. I don't care what the convention is, I just want the two files to be aligned. |
||
|
|
||
| Class.Pipeline."passthrough-capture" { | ||
|
|
||
|
|
@@ -47,6 +47,7 @@ Class.Pipeline."passthrough-capture" { | |
| copier_type "host" | ||
| type "aif_out" | ||
| node_type $HDA_HOST_INPUT_CLASS | ||
|
|
||
| num_audio_formats 6 | ||
| num_input_audio_formats 6 | ||
| num_output_audio_formats 6 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,11 +2,11 @@ | |
| # BE DAI passthrough pipeline | ||
| # | ||
| # All attributes defined herein are namespaced by alsatplg to | ||
| # "Object.Pipeline.passthrough-be.N.attribute_name" | ||
| # "Object.Pipeline.passthrough-playback-be.N.attribute_name" | ||
| # | ||
| # Usage: mixin-playback pipeline object can be instantiated as: | ||
| # Usage: passthrough-playback-be pipeline object can be instantiated as: | ||
| # | ||
| # Object.Pipeline.dai-pipeline."N" { | ||
| # Object.Pipeline.passthrough-playback-be."N" { | ||
| # direction "playback" | ||
| # period 1000 | ||
| # time_domain "timer" | ||
|
|
@@ -21,7 +21,7 @@ | |
| <include/components/copier.conf> | ||
| <include/components/pipeline.conf> | ||
|
|
||
| Class.Pipeline."passthrough-be" { | ||
| Class.Pipeline."passthrough-playback-be" { | ||
|
|
||
| DefineAttribute."index" {} | ||
|
|
||
|
|
@@ -32,17 +32,16 @@ Class.Pipeline."passthrough-be" { | |
| "index" | ||
| ] | ||
|
|
||
| # | ||
| # mixin-playback objects instantiated within the same alsaconf node must have | ||
| # unique pipeline_id attribute | ||
| # | ||
| !immutable [ | ||
| "direction" | ||
| ] | ||
|
|
||
| unique "instance" | ||
| } | ||
|
|
||
| Object.Widget { | ||
| copier."1" { | ||
| type dai_in | ||
| node_type $HDA_LINK_OUTPUT_CLASS | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if you remove the default node_type, I think we should make sure it is set in all top-level conf files first. I think we avoid setting it for HDA
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know how to progress. This is wrong in general. It should never have been set this way, if there is an attribute that is not valid by default across all uses, then it cannot be initialized by default in the base class. |
||
| type dai_out | ||
| num_audio_formats 3 | ||
| num_input_audio_formats 3 | ||
| num_output_audio_formats 3 | ||
|
|
@@ -84,6 +83,7 @@ Class.Pipeline."passthrough-be" { | |
| } | ||
| } | ||
|
|
||
| direction "playback" | ||
| time_domain "timer" | ||
| dynamic_pipeline 1 | ||
| channels 2 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,8 +45,9 @@ Class.Pipeline."passthrough-playback" { | |
| Object.Widget { | ||
| copier."1" { | ||
| copier_type "host" | ||
| node_type $HDA_HOST_OUTPUT_CLASS | ||
| type "aif_in" | ||
| node_type $HDA_HOST_OUTPUT_CLASS | ||
|
|
||
| num_audio_formats 3 | ||
| num_input_audio_formats 3 | ||
| num_output_audio_formats 3 | ||
|
|
@@ -62,7 +63,7 @@ Class.Pipeline."passthrough-playback" { | |
| in_valid_bit_depth 24 | ||
| out_bit_depth 32 | ||
| out_valid_bit_depth 32 | ||
| dma_buffer_size "$[$obs * 2]" | ||
| dma_buffer_size "$[$ibs * 2]" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and oh I forgot t mention, we need to remove dma_buffer_size altogether. This is no longer used by the kernel and it computed based on ibs/obs and stream direction
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. goodness. That just proves my point that these files are not properly maintained. We need to collectively revisit all this, it's just not acceptable to be sloppy at this stage. |
||
| } | ||
| # 32-bit 48KHz 2ch | ||
| Object.Base.audio_format.3 { | ||
|
|
||
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.
spurious change
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.
no, this is intentional.
this was to make sure all uses of the copier_type, type and node_type are well isolated to make sure we can detect any differences.