-
Notifications
You must be signed in to change notification settings - Fork 364
Audio: MFCC: Fix build of component for current SOF #9365
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
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2893ca0
Audio: MFCC: Fix build of component for current SOF
singalsu 88407bf
Tools: Topology2: Move IIR blob define to upper level from pipeline
singalsu 4b21164
Tools: Topology2: Add MFCC component and topologies for hda-generic
singalsu 1e62f6d
Tools: Tune: MFCC: Add export of default blob for tplg2
singalsu 1deaad3
Tools: Tune: MFCC: Fix channels handling in audio feature plotter
singalsu 8243c8e
App: Boards: Temporarily always set MFCC kconfig to yes
singalsu 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
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,21 @@ | ||
| #ifndef LOAD_TYPE | ||
| #define LOAD_TYPE "0" | ||
| #endif | ||
|
|
||
| REM # MFCC module config | ||
| [[module.entry]] | ||
| name = "MFCC" | ||
| uuid = "DB10A773-1AA4-4CEA-A21F-2D57A5C982EB" | ||
| affinity_mask = "0x1" | ||
| instance_count = "40" | ||
| domain_types = "0" | ||
| load_type = LOAD_TYPE | ||
| module_type = "9" | ||
| auto_start = "0" | ||
| sched_caps = [1, 0x00008000] | ||
| REM # pin = [dir, type, sample rate, size, container, channel-cfg] | ||
| pin = [0, 0, 0xfeef, 0xf, 0xf, 0x45ff, 1, 0, 0xfeef, 0xf, 0xf, 0x1ff] | ||
| REM # mod_cfg [PAR_0 PAR_1 PAR_2 PAR_3 IS_BYTES CPS IBS OBS MOD_FLAGS CPC OBLS] | ||
| mod_cfg = [0, 0, 0, 0, 4096, 1000000, 128, 128, 0, 0, 0] | ||
|
|
||
| index = __COUNTER__ |
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
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
19 changes: 19 additions & 0 deletions
19
tools/topology/topology2/include/components/eqiir/highpass_100hz_0db_16khz.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,19 @@ | ||
| # 100 Hz second order high-pass, gain 0 dB, created with sof_example_iir_eq.m 03-Jun-2024 | ||
| Object.Base.data."iir_eq" { | ||
| bytes " | ||
| 0x53,0x4f,0x46,0x34,0x00,0x00,0x00,0x00, | ||
| 0x58,0x00,0x00,0x00,0x00,0xa0,0x01,0x03, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x58,0x00,0x00,0x00,0x02,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,0x01,0x00,0x00,0x00, | ||
| 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0x00,0xf5,0x18,0x75,0xc3, | ||
| 0x6b,0x52,0x72,0x7c,0x6e,0x92,0x32,0x1f, | ||
| 0x24,0xdb,0x9a,0xc1,0x6e,0x92,0x32,0x1f, | ||
| 0x00,0x00,0x00,0x00,0xb4,0x7f,0x00,0x00" | ||
| } |
19 changes: 19 additions & 0 deletions
19
tools/topology/topology2/include/components/eqiir/highpass_100hz_0db_48khz.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,19 @@ | ||
| # 100 Hz second order high-pass, gain 0 dB, created with sof_example_iir_eq.m 03-Jun-2024 | ||
| Object.Base.data."iir_eq" { | ||
| bytes " | ||
| 0x53,0x4f,0x46,0x34,0x00,0x00,0x00,0x00, | ||
| 0x58,0x00,0x00,0x00,0x00,0xa0,0x01,0x03, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x58,0x00,0x00,0x00,0x02,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,0x01,0x00,0x00,0x00, | ||
| 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0x00,0xbd,0x82,0x2c,0xc1, | ||
| 0x2e,0xb5,0xd0,0x7e,0x0c,0xcc,0xc7,0x1f, | ||
| 0xe9,0x67,0x70,0xc0,0x0c,0xcc,0xc7,0x1f, | ||
| 0x00,0x00,0x00,0x00,0xb4,0x7f,0x00,0x00" | ||
| } |
19 changes: 19 additions & 0 deletions
19
tools/topology/topology2/include/components/eqiir/highpass_100hz_20db_16khz.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,19 @@ | ||
| # 100 Hz second order high-pass, gain 20 dB, created with sof_example_iir_eq.m 03-Jun-2024 | ||
| Object.Base.data."iir_eq" { | ||
| bytes " | ||
| 0x53,0x4f,0x46,0x34,0x00,0x00,0x00,0x00, | ||
| 0x58,0x00,0x00,0x00,0x00,0xa0,0x01,0x03, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x58,0x00,0x00,0x00,0x02,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,0x01,0x00,0x00,0x00, | ||
| 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0x00,0xf5,0x18,0x75,0xc3, | ||
| 0x6b,0x52,0x72,0x7c,0x6e,0x92,0x32,0x1f, | ||
| 0x24,0xdb,0x9a,0xc1,0x6e,0x92,0x32,0x1f, | ||
| 0xfc,0xff,0xff,0xff,0xd0,0x4f,0x00,0x00" | ||
| } |
19 changes: 19 additions & 0 deletions
19
tools/topology/topology2/include/components/eqiir/highpass_100hz_20db_48khz.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,19 @@ | ||
| # 100 Hz second order high-pass, gain 20 dB, created with sof_example_iir_eq.m 03-Jun-2024 | ||
| Object.Base.data."iir_eq" { | ||
| bytes " | ||
| 0x53,0x4f,0x46,0x34,0x00,0x00,0x00,0x00, | ||
| 0x58,0x00,0x00,0x00,0x00,0xa0,0x01,0x03, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x58,0x00,0x00,0x00,0x02,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,0x01,0x00,0x00,0x00, | ||
| 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0x00,0xbd,0x82,0x2c,0xc1, | ||
| 0x2e,0xb5,0xd0,0x7e,0x0c,0xcc,0xc7,0x1f, | ||
| 0xe9,0x67,0x70,0xc0,0x0c,0xcc,0xc7,0x1f, | ||
| 0xfc,0xff,0xff,0xff,0xd1,0x4f,0x00,0x00" | ||
| } |
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,64 @@ | ||
| # | ||
| # | ||
| # A MFCC component for SOF. All attributes defined herein are namespaced | ||
| # by alsatplg to "Object.Widget.mfcc.attribute_name" | ||
| # | ||
| # Usage: this component can be used by declaring in the parent object. i.e. | ||
| # | ||
| # Object.Widget.mfcc."N" { | ||
| # index 1 | ||
| # } | ||
| # } | ||
|
|
||
| # | ||
| # Where M is pipeline ID and N is a unique integer in the parent object. | ||
|
|
||
| Class.Widget."mfcc" { | ||
| # | ||
| # Pipeline ID | ||
| # | ||
| DefineAttribute."index" { | ||
| type "integer" | ||
| } | ||
|
|
||
| # | ||
| # Unique instance for MFCC 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" | ||
| } | ||
|
|
||
| # | ||
| # Default attributes for mfcc | ||
| # | ||
| uuid "73:a7:10:db:a4:1a:ea:4c:a2:1f:2d:57:a5:c9:82:eb" | ||
| type "effect" | ||
| no_pm "true" | ||
| num_input_pins 1 | ||
| num_output_pins 1 | ||
| } |
22 changes: 22 additions & 0 deletions
22
tools/topology/topology2/include/components/mfcc/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,22 @@ | ||
| # Exported MFCC configuration 24-Jul-2024 | ||
| # cd tools/tune/mfcc; octave setup_mfcc.m | ||
| Object.Base.data."mfcc_config" { | ||
| bytes " | ||
| 0x53,0x4f,0x46,0x34,0x00,0x00,0x00,0x00, | ||
| 0x68,0x00,0x00,0x00,0x00,0xa0,0x01,0x03, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x68,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,0x80,0x3e,0x00,0x00, | ||
| 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | ||
| 0x02,0x00,0x00,0x00,0x01,0x00,0x00,0x00, | ||
| 0xc3,0x35,0x00,0x2c,0xff,0xff,0x00,0x00, | ||
| 0x90,0x01,0xa0,0x00,0x00,0x00,0x14,0x00, | ||
| 0x0d,0x00,0x17,0x00,0x00,0x00,0x00,0x64, | ||
| 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, | ||
| 0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00" | ||
| } |
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
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.