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

Audio: DRC: Fix DRC enable control switch handling for HiFi4 #9654

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/audio/drc/drc_hifi4.c
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ static void drc_s16_default(struct processing_module *mod,
const int sample_inc = nch * sizeof(ae_int16);
const int delay_inc = sizeof(ae_int16);

if (!p->enabled) {
if (!cd->enabled) {
/* Delay the input sample only and don't do other processing. This is used when the
* DRC is disabled. We want to do this to match the processing delay of other bands
* in multi-band DRC kernel case.
Expand Down Expand Up @@ -748,7 +748,7 @@ static void drc_s24_default(struct processing_module *mod,
const int sample_inc = nch * sizeof(int32_t);
const int delay_inc = sizeof(int32_t);

if (!p->enabled) {
if (!cd->enabled) {
/* Delay the input sample only and don't do other processing. This is used when the
* DRC is disabled. We want to do this to match the processing delay of other bands
* in multi-band DRC kernel case. Note: use 32 bit delay function.
Expand Down Expand Up @@ -835,7 +835,7 @@ static void drc_s32_default(struct processing_module *mod,
const int sample_inc = nch * sizeof(int32_t);
const int delay_inc = sizeof(int32_t);

if (!p->enabled) {
if (!cd->enabled) {
/* Delay the input sample only and don't do other processing. This is used when the
* DRC is disabled. We want to do this to match the processing delay of other bands
* in multi-band DRC kernel case.
Expand Down
Loading