-
Notifications
You must be signed in to change notification settings - Fork 349
Tools: Topology2: Add Multiband-DRC to sof-hda-efx-generic.tplg #8049
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 1 commit into
thesofproject:main
from
singalsu:tplg2_add_multiband_drc
Sep 11, 2023
Merged
Changes from all commits
Commits
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
85 changes: 85 additions & 0 deletions
85
tools/topology/topology2/include/components/multiband_drc.conf
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,85 @@ | ||
| # | ||
| # | ||
| # A generic MULTIBAND_DRC component. All attributes defined herein are namespaced | ||
| # by alsatplg to "Object.Widget.multiband_drc.attribute_name" | ||
| # | ||
| # Usage: this component can be used by declaring in the parent object. i.e. | ||
| # | ||
| # Object.Widget.multiband_drc."N" { | ||
| # index 1 | ||
| # } | ||
| # } | ||
|
|
||
| # | ||
| # Where M is pipeline ID and N is a unique integer in the parent object. | ||
|
|
||
| Class.Widget."multiband_drc" { | ||
| # | ||
| # Pipeline ID | ||
| # | ||
| DefineAttribute."index" { | ||
| type "integer" | ||
| } | ||
|
|
||
| # | ||
| # Unique instance for MULTIBAND_DRC widget | ||
| # | ||
| DefineAttribute."instance" { | ||
| type "integer" | ||
| } | ||
|
|
||
| # Include common widget attributes definition | ||
| <include/components/widget-common.conf> | ||
|
|
||
| attributes { | ||
| !constructor [ | ||
| "index" | ||
| "instance" | ||
| ] | ||
| !mandatory [ | ||
| "num_input_pins" | ||
| "num_output_pins" | ||
| "num_input_audio_formats" | ||
| "num_output_audio_formats" | ||
| ] | ||
|
|
||
| !immutable [ | ||
| "uuid" | ||
| "type" | ||
| ] | ||
| !deprecated [ | ||
| "preload_count" | ||
| ] | ||
| unique "instance" | ||
| } | ||
|
|
||
| # | ||
| # multiband_drc widget switch control | ||
| # | ||
| Object.Control { | ||
| mixer."1" { | ||
| Object.Base.channel.1 { | ||
| name "fc" | ||
| shift 0 | ||
| } | ||
| Object.Base.ops.1 { | ||
| name "ctl" | ||
| info "volsw" | ||
cujomalainey marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| #259 binds the mixer control to switch get/put handlers | ||
| get 259 | ||
| put 259 | ||
| } | ||
| max 1 | ||
| } | ||
| } | ||
|
|
||
| # | ||
| # Default attributes for multiband_drc | ||
| # | ||
|
|
||
| uuid "56:22:9f:0d:4f:8e:b3:47:84:48:23:9a:33:4f:11:91" | ||
| type "effect" | ||
| no_pm "true" | ||
| num_input_pins 1 | ||
| num_output_pins 1 | ||
| } | ||
82 changes: 82 additions & 0 deletions
82
tools/topology/topology2/include/components/multiband_drc/default.conf
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,82 @@ | ||
| # Exported with script example_multiband_drc.m 01-Sep-2023 | ||
| Object.Base.data."multiband_drc_config" { | ||
| bytes " | ||
| 0x53,0x4f,0x46,0x34,0x00,0x00,0x00,0x00, | ||
| 0x4c,0x02,0x00,0x00,0x00,0xa0,0x01,0x03, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x4c,0x02,0x00,0x00,0x03,0x00,0x00,0x00, | ||
| 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0x00,0x7b,0x8e,0x88,0xfe, | ||
| 0x36,0x79,0x57,0x17,0x5f,0x19,0x6f,0x06, | ||
| 0xe8,0x79,0x67,0xd4,0x00,0x00,0x00,0x40, | ||
| 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00, | ||
| 0x5f,0x6d,0x19,0xe7,0x39,0xc4,0xd4,0x50, | ||
| 0x0c,0x9b,0x09,0x24,0xad,0x76,0x82,0x9f, | ||
| 0x00,0x00,0x00,0x40,0xff,0xff,0xff,0xff, | ||
| 0x43,0x72,0x00,0x00,0xa1,0xe6,0x90,0xf9, | ||
| 0x18,0x86,0x98,0x2b,0xe3,0x32,0xef,0x00, | ||
| 0x4b,0xf7,0x20,0xf1,0x18,0x69,0xc6,0x28, | ||
| 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00, | ||
| 0xf4,0x64,0xf6,0xdb,0x53,0x89,0x7d,0x60, | ||
| 0x5c,0x14,0xf2,0x0a,0x84,0x0d,0x78,0xdc, | ||
| 0xda,0xef,0x21,0x1c,0x00,0x00,0x00,0x00, | ||
| 0x00,0x40,0x00,0x00,0x6f,0x82,0x53,0xc2, | ||
| 0x3e,0x77,0xa1,0x7d,0x95,0xc1,0x02,0x00, | ||
| 0x2a,0x83,0x05,0x00,0x95,0xc1,0x02,0x00, | ||
| 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00, | ||
| 0x6f,0x82,0x53,0xc2,0x3e,0x77,0xa1,0x7d, | ||
| 0x34,0x7d,0xd3,0x3e,0x99,0x05,0x59,0x82, | ||
| 0x34,0x7d,0xd3,0x3e,0x00,0x00,0x00,0x00, | ||
| 0x00,0x40,0x00,0x00,0x2d,0x3a,0xcd,0xd3, | ||
| 0xc0,0xf5,0x82,0x68,0x05,0xf4,0xeb,0x00, | ||
| 0x0a,0xe8,0xd7,0x01,0x05,0xf4,0xeb,0x00, | ||
| 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00, | ||
| 0x2d,0x3a,0xcd,0xd3,0xc0,0xf5,0x82,0x68, | ||
| 0xe5,0x6e,0x2d,0x35,0x36,0x22,0xa5,0x95, | ||
| 0xe5,0x6e,0x2d,0x35,0x00,0x00,0x00,0x00, | ||
| 0x00,0x40,0x00,0x00,0x2d,0x3a,0xcd,0xd3, | ||
| 0xc0,0xf5,0x82,0x68,0x05,0xf4,0xeb,0x00, | ||
| 0x0a,0xe8,0xd7,0x01,0x05,0xf4,0xeb,0x00, | ||
| 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00, | ||
| 0x2d,0x3a,0xcd,0xd3,0xc0,0xf5,0x82,0x68, | ||
| 0xe5,0x6e,0x2d,0x35,0x36,0x22,0xa5,0x95, | ||
| 0xe5,0x6e,0x2d,0x35,0x00,0x00,0x00,0x00, | ||
| 0x00,0x40,0x00,0x00,0x01,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0xe8,0x00,0x00,0x00,0x1e, | ||
| 0x00,0x00,0x00,0x0c,0xd3,0x4d,0x62,0x00, | ||
| 0xb1,0xc2,0x09,0x04,0x55,0x55,0x55,0x05, | ||
| 0x50,0xfa,0x1e,0x00,0x55,0x60,0x94,0x00, | ||
| 0x7e,0x98,0x6a,0xff,0x83,0xc9,0xfe,0x01, | ||
| 0x64,0x47,0x47,0x22,0x17,0x56,0x74,0x01, | ||
| 0x1c,0xc7,0x71,0x00,0x77,0x77,0x77,0xff, | ||
| 0xd8,0x77,0x1f,0x00,0x05,0x00,0x00,0x00, | ||
| 0x00,0x00,0x36,0x00,0xdf,0x97,0x03,0x00, | ||
| 0xe7,0x3e,0x1e,0x00,0xdf,0x97,0x07,0x00, | ||
| 0x5b,0x91,0x00,0x00,0x02,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0xe8,0x00,0x00,0x00,0x1e, | ||
| 0x00,0x00,0x00,0x0c,0xd3,0x4d,0x62,0x00, | ||
| 0xb1,0xc2,0x09,0x04,0x55,0x55,0x55,0x05, | ||
| 0x50,0xfa,0x1e,0x00,0x55,0x60,0x94,0x00, | ||
| 0x7e,0x98,0x6a,0xff,0x83,0xc9,0xfe,0x01, | ||
| 0x64,0x47,0x47,0x22,0x17,0x56,0x74,0x01, | ||
| 0x1c,0xc7,0x71,0x00,0x77,0x77,0x77,0xff, | ||
| 0xd8,0x77,0x1f,0x00,0x05,0x00,0x00,0x00, | ||
| 0x00,0x00,0x36,0x00,0xdf,0x97,0x03,0x00, | ||
| 0xe7,0x3e,0x1e,0x00,0xdf,0x97,0x07,0x00, | ||
| 0x5b,0x91,0x00,0x00,0x03,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0xe8,0x00,0x00,0x00,0x1e, | ||
| 0x00,0x00,0x00,0x0c,0xd3,0x4d,0x62,0x00, | ||
| 0xb1,0xc2,0x09,0x04,0x55,0x55,0x55,0x05, | ||
| 0x50,0xfa,0x1e,0x00,0x55,0x60,0x94,0x00, | ||
| 0x7e,0x98,0x6a,0xff,0x83,0xc9,0xfe,0x01, | ||
| 0x64,0x47,0x47,0x22,0x17,0x56,0x74,0x01, | ||
| 0x1c,0xc7,0x71,0x00,0x77,0x77,0x77,0xff, | ||
| 0xd8,0x77,0x1f,0x00,0x05,0x00,0x00,0x00, | ||
| 0x00,0x00,0x36,0x00,0xdf,0x97,0x03,0x00, | ||
| 0xe7,0x3e,0x1e,0x00,0xdf,0x97,0x07,0x00, | ||
| 0x5b,0x91,0x00,0x00" | ||
| } |
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.