diff options
author | Subhash Chandra Bose Naripeddy <snariped@codeaurora.org> | 2014-06-03 19:42:41 -0700 |
---|---|---|
committer | Alexy Joseph <alexyj@codeaurora.org> | 2014-12-08 19:24:58 -0800 |
commit | e40a7cd4a71c1372c6b897d4f22da3eab20b8edd (patch) | |
tree | 983d3b71402cf1c33218720badb351b55a7f9d76 /post_proc/bundle.h | |
parent | 098dcbdd502059bd7443b15efb8685d634a86255 (diff) | |
download | hardware_qcom_audio-e40a7cd4a71c1372c6b897d4f22da3eab20b8edd.tar.gz hardware_qcom_audio-e40a7cd4a71c1372c6b897d4f22da3eab20b8edd.tar.bz2 hardware_qcom_audio-e40a7cd4a71c1372c6b897d4f22da3eab20b8edd.zip |
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>
Diffstat (limited to 'post_proc/bundle.h')
-rw-r--r-- | post_proc/bundle.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/post_proc/bundle.h b/post_proc/bundle.h index cbe7dba8..06da991e 100644 --- a/post_proc/bundle.h +++ b/post_proc/bundle.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 @@ -48,6 +48,7 @@ struct output_context_s { int pcm_device_id; struct mixer *mixer; struct mixer_ctl *ctl; + struct mixer_ctl *ref_ctl; }; /* effect specific operations. @@ -66,6 +67,7 @@ struct effect_ops_s { int (*set_parameter)(effect_context_t *context, effect_param_t *param, uint32_t size); int (*get_parameter)(effect_context_t *context, effect_param_t *param, uint32_t *size); int (*set_device)(effect_context_t *context, uint32_t device); + int (*set_hw_acc_mode)(effect_context_t *context, int32_t value); int (*command)(effect_context_t *context, uint32_t cmdCode, uint32_t cmdSize, void *pCmdData, uint32_t *replySize, void *pReplyData); }; @@ -82,6 +84,7 @@ struct effect_context_s { audio_io_handle_t out_handle; uint32_t state; bool offload_enabled; + bool hw_acc_enabled; effect_ops_t ops; }; |