Skip to content
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

multiband_drc: instantaneous enabled state switch on processing #9329

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

johnylin76
Copy link
Contributor

(cherry-picked from stable-v2.2)

In present multiband_drc design, the enabled state is determined by the switch control while multiband_drc starts to process. If the switch control toggles while processing, it will take effects on the next time multiband_drc starts to process.

This commit makes change to let the enabled state update instantaneously by the switch control toggle when multiband_drc is processing.

In present multiband_drc design, the enabled state is determined by
the switch control while multiband_drc starts to process. If the
switch control toggles while processing, it will take effects on the
next time multiband_drc starts to process.

This commit makes change to let the enabled state update
instantaneously by the switch control toggle when multiband_drc is
processing.

Signed-off-by: Pin-chih Lin <johnylin@google.com>
(cherry picked from commit 8e8ff75)
Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@singalsu pls review

Copy link
Collaborator

@singalsu singalsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, good to have this!

@lgirdwood lgirdwood merged commit 6ca76d5 into thesofproject:main Aug 5, 2024
44 of 47 checks passed
@@ -328,7 +336,10 @@ static int multiband_drc_process(struct processing_module *mod,
}
}

cd->multiband_drc_func(mod, source, sink, frames);
if (cd->process_enabled)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it be possible to reassign cd->multiband_drc_func in multiband_drc_process_enable() and avoid the if here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants