Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 367
topology2: Mod cfg ibs obs cpc addition#7348
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| # Class definition for module configuration object | ||
| # mod_cfg objects can be instantiated as: | ||
| # | ||
| # Object.Base.mod_cfg."0" { | ||
| # ibs 384 | ||
| # obs 384 | ||
| # cpc 4600 | ||
| # } | ||
| # | ||
| Class.Base."mod_cfg" { | ||
| DefineAttribute."instance" { | ||
| } | ||
| # input buffer size | ||
Contributor 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. let's give comments like: | ||
| DefineAttribute."ibs" { | ||
| # Token set reference name | ||
| token_ref "sof_tkn_mod_cfg.word" | ||
| } | ||
| # output buffer size | ||
| DefineAttribute."obs" { | ||
| # Token set reference name | ||
| token_ref "sof_tkn_mod_cfg.word" | ||
| } | ||
| # Cycles Per Chunk | ||
| DefineAttribute."cpc" { | ||
| # Token set reference name | ||
| token_ref "sof_tkn_mod_cfg.word" | ||
| } | ||
| attributes { | ||
| !constructor [ | ||
| "instance" | ||
| ] | ||
| # | ||
| # mod_cfg objects instantiated within the same alsaconf node | ||
| # must have unique instance attribute values | ||
| # | ||
| unique "instance" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -13,6 +13,7 @@ | ||
| # } | ||
| # | ||
| # Where N is the unique instance number for the src widget within the same alsaconf node. | ||
| <include/components/widget-common-inc.conf> | ||
| Class.Widget."asrc" { | ||
| # | ||
| @@ -28,6 +29,12 @@ Class.Widget."asrc" { | ||
| #include common component definition | ||
| <include/components/widget-common.conf> | ||
| #include platform specific module configs for the asrc module | ||
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. @jsarha is there value in this commit just yet? Can we not add the files as and when needed?
| ||
| IncludeByKey.PLATFORM { | ||
| "mtl" "platform/intel/mod_cfg/mod_cfg_mtl_asrc.conf" | ||
| "tgl" "platform/intel/mod_cfg/mod_cfg_tgl_asrc.conf" | ||
| } | ||
| # | ||
| # ASRC widget UUID | ||
| # | ||
Uh oh!
There was an error while loading. Please reload this page.
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.
can we add comments here:
for ibs/obs, it is initialized as: 48 * 2 * 4 = 384, it is 48k LL with 2 channel 32 bit format.
for cpc, I am not sure how CPC figured out as instantiated value?