mirror of https://github.com/thesofproject/sof.git
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 <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
parent
c219219b5d
commit
4633f15d23
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue