post_proc: Add support for non-tunnel DSP audio effects
Add hw accelerator module to send PCM data to DSP and get
back the effects processed data.
Expose a wrapper library for AudioFlinger to be able use the new
module to apply the DSP audio effects.
Change-Id: I6ee30c11f04a97b35f12201fb61b8cd901921e68
Signed-off-by: Alexy Joseph <alexyj@codeaurora.org>
diff --git a/post_proc/reverb.h b/post_proc/reverb.h
index 63192eb..991151e 100644
--- a/post_proc/reverb.h
+++ b/post_proc/reverb.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
* Not a Contribution.
*
* Copyright (C) 2013 The Android Open Source Project
@@ -47,6 +47,7 @@
// Offload vars
struct mixer_ctl *ctl;
+ int hw_acc_fd;
bool auxiliary;
bool preset;
uint16_t cur_preset;
@@ -61,6 +62,8 @@
void reverb_preset_init(reverb_context_t *context);
+void reverb_insert_init(reverb_context_t *context);
+
int reverb_get_parameter(effect_context_t *context, effect_param_t *p,
uint32_t *size);
@@ -69,6 +72,8 @@
int reverb_set_device(effect_context_t *context, uint32_t device);
+int reverb_set_mode(effect_context_t *context, int32_t hw_acc_fd);
+
int reverb_reset(effect_context_t *context);
int reverb_init(effect_context_t *context);