Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 367
Module api conversion of google ctc, google rtc, and igo nr modules#10292
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
kv2019i
merged 4 commits into
thesofproject:main
from
jsarha:module_api_google_ctc_google_rtc_igo_nrOct 31, 2025
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
621596a
Audio: Google ctc: Memory, blob, and fast_get allocs to module API
e8956f5
Audio: Google ctc: Fix data blob handler leak
645f1af
Audio: Google rtc: Memory, blob, and fast_get allocs to module API
eb182ac
Audio: igo_nr: Memory, blob, and fast_get allocs to module API
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
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 |
|---|---|---|
| @@ -12,7 +12,6 @@ | ||
| #include <user/trace.h> | ||
| #include <sof/common.h> | ||
| #include <rtos/panic.h> | ||
| #include <rtos/alloc.h> | ||
| #include <rtos/init.h> | ||
| #include <sof/lib/uuid.h> | ||
| #include <sof/list.h> | ||
| @@ -421,7 +420,7 @@ static int igo_nr_init(struct processing_module *mod) | ||
| return -EINVAL; | ||
| } | ||
| cd = rzalloc(SOF_MEM_FLAG_USER, sizeof(*cd)); | ||
| cd = mod_zalloc(mod, sizeof(*cd)); | ||
| if (!cd) | ||
| return -ENOMEM; | ||
| @@ -433,18 +432,18 @@ static int igo_nr_init(struct processing_module *mod) | ||
| goto cd_fail; | ||
| } | ||
| cd->p_handle = rballoc(SOF_MEM_FLAG_USER, cd->igo_lib_info.handle_size); | ||
| cd->p_handle = mod_balloc(mod, cd->igo_lib_info.handle_size); | ||
| if (!cd->p_handle) { | ||
| comp_err(dev, "igo_handle memory rballoc error for size %d", | ||
| comp_err(dev, "igo_handle memory mod_balloc error for size %d", | ||
| cd->igo_lib_info.handle_size); | ||
| ret = -ENOMEM; | ||
| goto cd_fail; | ||
| } | ||
| /* Handler for configuration data */ | ||
| cd->model_handler = comp_data_blob_handler_new(dev); | ||
| cd->model_handler = mod_data_blob_handler_new(mod); | ||
| if (!cd->model_handler) { | ||
| comp_err(dev, "comp_data_blob_handler_new() failed."); | ||
| comp_err(dev, "mod_data_blob_handler_new() failed."); | ||
| ret = -ENOMEM; | ||
| goto cd_fail2; | ||
| } | ||
| @@ -463,13 +462,13 @@ static int igo_nr_init(struct processing_module *mod) | ||
| return 0; | ||
| cd_fail3: | ||
| comp_data_blob_handler_free(cd->model_handler); | ||
| mod_data_blob_handler_free(mod, cd->model_handler); | ||
| cd_fail2: | ||
| rfree(cd->p_handle); | ||
| mod_free(mod, cd->p_handle); | ||
| cd_fail: | ||
| rfree(cd); | ||
| mod_free(mod, cd); | ||
| return ret; | ||
| } | ||
| @@ -479,10 +478,10 @@ static int igo_nr_free(struct processing_module *mod) | ||
| comp_info(mod->dev, "igo_nr_free()"); | ||
jsarha marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| comp_data_blob_handler_free(cd->model_handler); | ||
| mod_data_blob_handler_free(mod, cd->model_handler); | ||
| rfree(cd->p_handle); | ||
| rfree(cd); | ||
| mod_free(mod, cd->p_handle); | ||
| mod_free(mod, cd); | ||
| return 0; | ||
| } | ||
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
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.
same problem with initialisation as in #10295