diff options
author | Uday Kishore Pasupuleti <upasupul@codeaurora.org> | 2016-01-06 19:12:41 -0800 |
---|---|---|
committer | Prashant Malani <pmalani@google.com> | 2016-01-08 17:00:16 -0800 |
commit | 582e0a5e965897ea54ecfa5fe206797dab577a45 (patch) | |
tree | 3d99bdf637b54008f1e906975d75f7de7bfb6fb6 /msm8909/post_proc/reverb.h | |
parent | befe610a877c3b150a6dd90cf358df4945b8f9a6 (diff) | |
download | hardware_qcom_audio-582e0a5e965897ea54ecfa5fe206797dab577a45.tar.gz hardware_qcom_audio-582e0a5e965897ea54ecfa5fe206797dab577a45.tar.bz2 hardware_qcom_audio-582e0a5e965897ea54ecfa5fe206797dab577a45.zip |
audio: msm8909w caf release LW.BR.1.0-00410-8x09w.0
MSM8909w Audio HAL code copied from CAF release
LW.BR.1.0-00410-8x09w.0
dbcce50 hal: Port wcd9326 changes to 8909
410c530 hal: update error handling for pcm_prepare failures
ff79309 hal: fix compilation issues with audio FM extention
762d7eb policy_hal: add support for fm device loopback
7c418f9 audio_policy: modify few methods to appropriately override base
8b12163 audio: Add support to enable split A2DP
a0559fa Revert "Revert "policy_hal: Function prototype correction for custom policy"."
Fixed makefiles to be compatible with PDK without kernel source
Change-Id: I9c6f2139adee62426b877516deeb41d4ed8052b2
Diffstat (limited to 'msm8909/post_proc/reverb.h')
-rw-r--r-- | msm8909/post_proc/reverb.h | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/msm8909/post_proc/reverb.h b/msm8909/post_proc/reverb.h new file mode 100644 index 00000000..63192eb0 --- /dev/null +++ b/msm8909/post_proc/reverb.h @@ -0,0 +1,84 @@ +/* + * Copyright (c) 2013, The Linux Foundation. All rights reserved. + * Not a Contribution. + * + * Copyright (C) 2013 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef OFFLOAD_REVERB_H_ +#define OFFLOAD_REVERB_H_ + +#include "bundle.h" + +#define REVERB_DEFAULT_PRESET REVERB_PRESET_NONE + +extern const effect_descriptor_t aux_env_reverb_descriptor; +extern const effect_descriptor_t ins_env_reverb_descriptor; +extern const effect_descriptor_t aux_preset_reverb_descriptor; +extern const effect_descriptor_t ins_preset_reverb_descriptor; + +typedef struct reverb_settings_s { + int16_t roomLevel; + int16_t roomHFLevel; + uint32_t decayTime; + int16_t decayHFRatio; + int16_t reflectionsLevel; + uint32_t reflectionsDelay; + int16_t reverbLevel; + uint32_t reverbDelay; + int16_t diffusion; + int16_t density; +} reverb_settings_t; + +typedef struct reverb_context_s { + effect_context_t common; + + // Offload vars + struct mixer_ctl *ctl; + bool auxiliary; + bool preset; + uint16_t cur_preset; + uint16_t next_preset; + reverb_settings_t reverb_settings; + uint32_t device; + struct reverb_params offload_reverb; +} reverb_context_t; + + +void reverb_auxiliary_init(reverb_context_t *context); + +void reverb_preset_init(reverb_context_t *context); + +int reverb_get_parameter(effect_context_t *context, effect_param_t *p, + uint32_t *size); + +int reverb_set_parameter(effect_context_t *context, effect_param_t *p, + uint32_t size); + +int reverb_set_device(effect_context_t *context, uint32_t device); + +int reverb_reset(effect_context_t *context); + +int reverb_init(effect_context_t *context); + +int reverb_enable(effect_context_t *context); + +int reverb_disable(effect_context_t *context); + +int reverb_start(effect_context_t *context, output_context_t *output); + +int reverb_stop(effect_context_t *context, output_context_t *output); + +#endif /* OFFLOAD_REVERB_H_ */ |