From 0372bb1e01b4ec9a592dbba6cc27bcbba4463d66 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Thu, 14 Nov 2024 14:30:12 +0200 Subject: [PATCH] Audio: DRC: Fix DRC enable control switch handling for HiFi4 The HiFi4 build is looking for enable only from the configuration blob and the ALSA switch control has no impact. This change unifies the operation with generic and HiFi3 builds. Signed-off-by: Seppo Ingalsuo --- src/audio/drc/drc_hifi4.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/audio/drc/drc_hifi4.c b/src/audio/drc/drc_hifi4.c index 1e931616600c..d8c92af60cca 100644 --- a/src/audio/drc/drc_hifi4.c +++ b/src/audio/drc/drc_hifi4.c @@ -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. @@ -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. @@ -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.