-
Notifications
You must be signed in to change notification settings - Fork 349
topology2: add dummy wov pipeline to nocodec #6782
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
Merged
lgirdwood
merged 8 commits into
thesofproject:main
from
libinyang:dummy_wov_tplg_submit
Dec 22, 2022
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
08dee14
topology2: move payload_with_output_fmt into process token set
libinyang 38d4a9d
topology2: add micsel support
libinyang d774ae9
topology2: add kpb support
libinyang 32dc55a
topology2: add wov support
libinyang 19b0108
topology2: add wov-detect pipeline
libinyang 020a5fe
topology2: add dai-kpb-be pipeline
libinyang f30a883
topology2: add dmic-wov.conf
libinyang a25f4f6
topology2: cavs-nocodec add wov support
libinyang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| # | ||
| # Widget kpb | ||
| # | ||
| # A kpb widget. All attributes defined herein are namespaced | ||
| # by alsatplg to "Object.Widget.kpb.N.attribute_name" | ||
| # | ||
| # Usage: this component can be used by instantiating it in the parent object. i.e. | ||
| # | ||
| # Object.Widget.kpb."N" { | ||
| # | ||
| # } | ||
| # | ||
| # Where N is the unique instance number for the kpb object within the same alsaconf node. | ||
|
|
||
| Class.Widget."kpb" { | ||
| # | ||
| # Pipeline ID for the kpb object | ||
| # | ||
| DefineAttribute."index" {} | ||
|
|
||
| # | ||
| # Kpb object instance | ||
| # | ||
| DefineAttribute."instance" {} | ||
|
|
||
| DefineAttribute."cpc" { | ||
| # Token set reference name and type | ||
| token_ref "sof_tkn_comp.word" | ||
| } | ||
|
|
||
| DefineAttribute."num_audio_formats" { | ||
| # Token set reference name and type | ||
| token_ref "sof_tkn_comp.word" | ||
| } | ||
|
|
||
| #include common component definition | ||
| <include/components/widget-common.conf> | ||
|
|
||
| # | ||
| # kpb component UUID | ||
| # | ||
| DefineAttribute."uuid" { | ||
| type "string" | ||
| # Token set reference name and type | ||
| token_ref "sof_tkn_comp.uuid" | ||
| } | ||
|
|
||
| attributes { | ||
| # | ||
| # The kpb widget name would be constructed using the index and | ||
| # instance attributes. For example: "kpb.0.1". | ||
| # | ||
| !constructor [ | ||
| "index" | ||
| "instance" | ||
| ] | ||
|
|
||
| # | ||
| # mandatory attributes that must be provided when the class is instantiated | ||
| # | ||
| !mandatory [ | ||
| "no_pm" | ||
| "uuid" | ||
| ] | ||
|
|
||
| # | ||
| # immutable attributes cannot be modified in the object instance | ||
| # | ||
| !immutable [ | ||
| "uuid" | ||
| ] | ||
|
|
||
| unique "instance" | ||
| } | ||
|
|
||
| # | ||
| # Default attributes for kpb | ||
| # | ||
| type "effect" | ||
|
|
||
| num_audio_formats 1 | ||
| #UUID: D8218443-5FF3-4A4C-B388-6CFE07B9562E | ||
| uuid "43:84:21:d8:f3:5f:4c:4a:b3:88:6c:fe:07:b9:56:2e" | ||
| no_pm "true" | ||
| core_id 0 | ||
| cpc 720000 | ||
| num_sink_pins 1 | ||
| num_source_pins 2 | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| # | ||
| # Common widget micsel | ||
ranj063 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| # | ||
| # A generic micsel widget. All attributes defined herein are namespaced | ||
| # by alsatplg to "Object.Widget.micsel.N.attribute_name" | ||
| # | ||
| # Usage: this component can be used by instantiating it in the parent object. i.e. | ||
| # | ||
| # Object.Widget.micsel."N" { | ||
| # | ||
| # } | ||
| # | ||
| # Where N is the unique instance number for the micsel object within the same alsaconf node. | ||
|
|
||
| Class.Widget."micsel" { | ||
| # | ||
| # Pipeline ID for the micsel object | ||
| # | ||
| DefineAttribute."index" {} | ||
|
|
||
| # | ||
| # Micsel object instance | ||
| # | ||
| DefineAttribute."instance" {} | ||
|
|
||
| DefineAttribute."cpc" { | ||
| # Token set reference name and type | ||
| token_ref "sof_tkn_comp.word" | ||
| } | ||
|
|
||
| DefineAttribute."num_audio_formats" { | ||
| # Token set reference name and type | ||
| token_ref "sof_tkn_comp.word" | ||
| } | ||
|
|
||
| #include common component definition | ||
| <include/components/widget-common.conf> | ||
|
|
||
| # | ||
| # micsel component UUID | ||
| # | ||
| DefineAttribute."uuid" { | ||
| type "string" | ||
| # Token set reference name and type | ||
| token_ref "sof_tkn_comp.uuid" | ||
| } | ||
|
|
||
| DefineAttribute."payload_with_output_fmt" { | ||
| # Token set reference name and type | ||
| token_ref "sof_tkn_process.bool" | ||
| } | ||
|
|
||
| attributes { | ||
| # | ||
| # The micsel widget name would be constructed using the index and | ||
| # instance attributes. For example: "micsel.0.1". | ||
| # | ||
| !constructor [ | ||
| "index" | ||
| "instance" | ||
| ] | ||
|
|
||
| # | ||
| # mandatory attributes that must be provided when the class is instantiated | ||
| # | ||
| !mandatory [ | ||
| "no_pm" | ||
| "uuid" | ||
| ] | ||
|
|
||
| # | ||
| # immutable attributes cannot be modified in the object instance | ||
| # | ||
| !immutable [ | ||
| "uuid" | ||
| ] | ||
|
|
||
| unique "instance" | ||
| } | ||
|
|
||
| # | ||
| # Default attributes for micsel | ||
| # | ||
| type "effect" | ||
| payload_with_output_fmt 1 | ||
|
|
||
| num_audio_formats 1 | ||
| #UUID: 32FE92C1-1E17-4FC2-9758-C7F3542E980A | ||
| uuid "c1:92:fe:32:17:1e:c2:4f:97:58:c7:f3:54:2e:98:0a" | ||
| no_pm "true" | ||
| core_id 0 | ||
| cpc 29000 | ||
| num_sink_pins 1 | ||
| num_source_pins 1 | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,108 @@ | ||
| # | ||
| # wov widget | ||
| # | ||
ranj063 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| # A wov widget. This is a generic class, which will be used for multiple types of wov | ||
| # widget, and the wov widgets can be distinguished from one another with different UUID's. | ||
| # All attributes defined herein are namespaced | ||
| # by alsatplg to "Object.Widget.wov.N.attribute_name" | ||
| # | ||
| # Usage: this component can be used by instantiating it in the parent object. i.e. | ||
| # | ||
| # Object.Widget.wov."N" { | ||
| # uuid $WOV_UUID | ||
| # } | ||
| # | ||
| # Where N is the unique instance number for the wov object within the same alsaconf node. | ||
|
|
||
| Class.Widget."wov" { | ||
| # | ||
| # Pipeline ID for the wov object | ||
| # | ||
| DefineAttribute."index" {} | ||
|
|
||
| # | ||
| # wov object instance | ||
| # | ||
| DefineAttribute."instance" {} | ||
|
|
||
| DefineAttribute."cpc" { | ||
| # Token set reference name and type | ||
| token_ref "sof_tkn_comp.word" | ||
| } | ||
|
|
||
| DefineAttribute."num_audio_formats" { | ||
| # Token set reference name and type | ||
| token_ref "sof_tkn_comp.word" | ||
| } | ||
|
|
||
| #include common component definition | ||
| <include/components/widget-common.conf> | ||
|
|
||
| # | ||
| # wov component UUID | ||
| # | ||
| DefineAttribute."uuid" { | ||
| type "string" | ||
| # Token set reference name and type | ||
| token_ref "sof_tkn_comp.uuid" | ||
| } | ||
|
|
||
| DefineAttribute."is_pages" { | ||
| # Token set reference name and type | ||
| token_ref "sof_tkn_comp.word" | ||
| } | ||
|
|
||
| attributes { | ||
| # | ||
| # The wov widget name would be constructed using the index and | ||
| # instance attributes. For example: "wov.0.1". | ||
| # | ||
| !constructor [ | ||
| "index" | ||
| "instance" | ||
| ] | ||
|
|
||
| # | ||
| # mandatory attributes that must be provided when the class is instantiated | ||
| # | ||
| !mandatory [ | ||
| "no_pm" | ||
| "uuid" | ||
| ] | ||
|
|
||
| # | ||
| # immutable attributes cannot be modified in the object instance | ||
| # | ||
| !immutable [ | ||
| "type" | ||
| ] | ||
|
|
||
| unique "instance" | ||
| } | ||
|
|
||
| Object.Control.bytes."1" { | ||
| name wov_init | ||
| access [ | ||
| tlv_read | ||
| tlv_callback | ||
| ] | ||
| Object.Base.extops."extctl" { | ||
| get 258 | ||
| put 0 | ||
| } | ||
| max 4096 | ||
| IncludeByKey.WOV_UUID { | ||
| '1f:d5:a8:eb:27:78:b5:47:82:ee:de:6e:77:43:af:67' "platform/intel/test-wov-init-payload.conf" | ||
| } | ||
| } | ||
|
|
||
| # | ||
| # Default attributes for wov | ||
| # | ||
| type "effect" | ||
| num_audio_formats 1 | ||
| no_pm "true" | ||
| core_id 0 | ||
| num_sink_pins 1 | ||
| num_source_pins 0 | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.