Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 210a4d93 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "post_proc: disable adsp reverb when preset is 'None'"

parents 6b0d54e9 b27e25f0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -236,9 +236,14 @@ void reverb_set_density(reverb_context_t *context, int16_t density)

void reverb_set_preset(reverb_context_t *context, int16_t preset)
{
    bool enable;
    ALOGV("%s: preset: %d", __func__, preset);
    context->next_preset = preset;
    offload_reverb_set_preset(&(context->offload_reverb), preset);

    enable = (preset == REVERB_PRESET_NONE) ? false: true;
    offload_reverb_set_enable_flag(&(context->offload_reverb), enable);

    if (context->ctl)
        offload_reverb_send_params(context->ctl, context->offload_reverb,
                                   OFFLOAD_SEND_REVERB_ENABLE_FLAG |