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/virtualizer.h b/post_proc/virtualizer.h
index 4a5005f..440c8a2 100644
--- a/post_proc/virtualizer.h
+++ b/post_proc/virtualizer.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
@@ -31,6 +31,7 @@
// Offload vars
struct mixer_ctl *ctl;
+ int hw_acc_fd;
bool temp_disabled;
uint32_t device;
struct virtualizer_params offload_virt;
@@ -44,6 +45,8 @@
int virtualizer_set_device(effect_context_t *context, uint32_t device);
+int virtualizer_set_mode(effect_context_t *context, int32_t hw_acc_fd);
+
int virtualizer_reset(effect_context_t *context);
int virtualizer_init(effect_context_t *context);