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

This commit is contained in:
Linux Build Service Account 2014-01-27 11:39:19 -08:00 committed by Gerrit - the friendly Code Review server
commit 210a4d9308
1 changed files with 5 additions and 0 deletions

View File

@ -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 |