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/equalizer.h b/post_proc/equalizer.h
index 19af186..7fec058 100644
--- a/post_proc/equalizer.h
+++ b/post_proc/equalizer.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
@@ -36,6 +36,7 @@
// Offload vars
struct mixer_ctl *ctl;
+ int hw_acc_fd;
uint32_t device;
struct eq_params offload_eq;
} equalizer_context_t;
@@ -48,6 +49,8 @@
int equalizer_set_device(effect_context_t *context, uint32_t device);
+int equalizer_set_mode(effect_context_t *context, int32_t hw_acc_fd);
+
int equalizer_reset(effect_context_t *context);
int equalizer_init(effect_context_t *context);