Commit Graph

23 Commits

Author SHA1 Message Date
Jitendra Naruka 1b6513f811 hardware/qcom/audio: Integrate Eagle framework for HeadphoneX
Add support to integrate the Eagle framework for HeadphoneX
audio post processing feature 1.1

Change-Id: Ib119c27c359950a6087d5e6ae200dfc1e83b7551
Signed-off-by: Jitendra Naruka <jitendra.naruka@dts.com>
Signed-off-by: Alexy Joseph <alexyj@codeaurora.org>
2014-12-01 15:52:26 -08:00
wjiang 50b81f44df post_proc: Fix bassboost/virtualizer not disabled on speaker
When output is unintended device, there's no need to query enable_flag
before setting effect to disabled state. There's possiblity that
enable_flag is 0 as initialized value, which hinder effects from being
disabled.

Change-Id: Ib90c0ad0982dc8274129bb1bed7861e11670fbdb
2014-08-06 12:19:25 -07:00
wjiang 1eae625ba7 post_proc: Fix improper datatype of EQ preset band level value
unsigned int causes negative band level turn out to be extreme large
value, which results in EQ works abnormally due to unexpected parameter
sent.

Change-Id: I81120c604f4e9f23b25d5a45a7b0294fea63d207
CRs-Fixed: 696825
2014-07-24 08:19:28 -07:00
Linux Build Service Account 04e5c07733 Merge "audio: Change LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH" 2014-06-03 12:09:27 -07:00
Mingming Yin a6dad60d52 hal: update audio feature flags
- update audio feature flags to use
  AUDIO_FEATURE_ENABLED_XXX instead of
  AUDIO_FEATURE_DISABLED_XXX.
- These feature flags are defined
  by target board config file

Change-Id: Iba482d8b72bfa2675877d833d7abcb93d4cf4907
2014-05-29 13:15:15 -07:00
Apoorv Raghuvanshi 1b555f7332 audio: Change LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH
To comply with multi-arch build system changes for 64-bit support,
LOCAL_MODULE_RELATIVE_PATH needs to be used.

Drop explicit use of LOCAL_MODULE_PATH, and use relative path to
avoid build system to overwrite one of multi-arch library variants
with the other arch variant.

Change-Id: I21f9b952a79c3930b15ff5549ac3c21ca827cc3a
2014-05-29 12:51:51 -07:00
wjiang ebb69fae68 post_proc: fix post and pre process KW issues
KW issue fix includes:
- handle memory allocation failure
- array index boundary check

Change-Id: I083952ba58d348a5b650601a83e6f492b0d686bb
2014-05-16 23:11:15 +08:00
Linux Build Service Account d4fbf85620 Merge "post_proc: disable Bassboost and Virtualizer for USB_ACCESSORY" 2014-05-12 23:44:32 -07:00
Dhananjay Kumar fd00bef969 post_proc: disable Bassboost and Virtualizer for USB_ACCESSORY
USB_ACCESSORY is not intended to be applied with SA+ bassboost
and virtualizer, so add into invalid devices list.

CRs-Fixed: 659191
Change-Id: If1f3421f9935ce624dc21895d9244d36d195b2bd
2014-05-06 16:49:09 +05:30
Dhananjay Kumar 574f392723 post_proc: improve logging
Make logs more meaningful and remove
ones not necessary.

Change-Id: I9562cf34a5dee406b1c0347a9004db08de9cd5df
2014-05-01 21:31:48 +05:30
Mingming Yin 67e34518ac hal: add missing flags for extended features
- add missing feature flags and definitions
  to compile hal without extended features
  enabled.

Change-Id: I8c04ae54e6597ed43de60b2d01ca333070aef675
2014-04-23 16:41:03 -07:00
Linux Build Service Account a3e12d6e1a Merge "post_proc: disable effect immediately when routed to invalid devices" 2014-04-02 02:56:29 -07:00
Linux Build Service Account 03943ec79c Merge "post_proc: Enable reverb in DSP to start effect" 2014-03-30 23:27:51 -07:00
wjiang 95d74c2232 post_proc: disable effect immediately when routed to invalid devices
Offload effect is still perceived when invalid output device is
connected. We should send disable command immediately once phone is
routed to unexpected device and forbid effect enablement during
temporary disabled state.

Change-Id: I26d4ccfd77037a879622b0437ae3916ff0071a69
CRs-Fixed: 630408
2014-03-28 00:17:08 -07:00
Linux Build Service Account 6b4a1bc9fe Merge "post_proc: disable Bassboost and Virtualizer for certain devices" 2014-03-26 11:10:41 -07:00
wjiang ee2ff9621d post_proc: disable Bassboost and Virtualizer for certain devices
WFD, Hdmi and usb audio are not intended to be applied with
SA+ bassboost and virtualizer, so add into invalid device list.

Change-Id: Ifcf9cdffb6657cf82bf903d16d4a3ae8471590f0
CRs-Fixed: 630408
2014-03-25 02:41:09 +08:00
wjiang ca2685b2a0 post_proc: reverb preset id is not mapped correctly
Array index is not correct and causes uninitialized value being used
when 'Plate' is chosen. Correct index to retrieve the right preset id.

Change-Id: I2ad058bc7dc5d9b74882da2f5d4c0e3570f9e952
CRs-Fixed: 630429
2014-03-25 02:39:34 +08:00
wjiang c37c260fa1 post_proc: Enable reverb in DSP to start effect
During switch to tunnel playback, reverb enable command is not sent to
DSP and causes reverb effect not applied continuously.

Send reverb enable params to DSP to start effects during switch.

Change-Id: I6e8bbdf4c1e5933be9a37413a4c4f1b7106fe6ba
CRs-Fixed: 637016
2014-03-24 23:47:23 +08:00
wjiang d45948e215 post_proc: send ENABLE_FLAG directly to offload effect driver
Enable flag should be sent directly through offload effect driver to
adsp whenever bundle receives EFFECT_CMD_ENABLE. Otherwise enablement
will only take effect in adsp after subsequent parameters being set, and
that's not expected.

Change-Id: I5a8f936095b5667f0e04b9109b67eaa0faec3a69
2014-02-26 23:11:10 -08:00
Subhash Chandra Bose Naripeddy 090a2aa3f3 post_proc: include audio_effects.h from kernel exported headers
Currently, audio_effects.h header file is included with reference
to the absolute path. Instead, reference it from the kernel
exported headers.

Change-Id: I83880e0947e8b6a334b11c952fe8182b49ef5090
2014-02-20 12:33:11 -08:00
wjiang b27e25f062 post_proc: disable adsp reverb when preset is 'None'
Audio HAL set corresponding preset id into adsp, but doesn't disabe
reverb explicitly when 'None' preset is chosen. However, preset=0
means custom preset in adsp, so adsp won't stop reverb processing.

Change-Id: I0c42dd13c09579a6bd3bef2141b857477ec65f2e
CRs-Fixed: 604982
2014-01-22 13:26:53 +08:00
Amit Shekhar d02f2cd710 post_proc: Enable effects param in DSP to start effect
-During switch to tunnel playback, offload effects-flags remain
disabled. This stops effects being applied on tunnel playback.
-Send effects enable params to DSP to start effects during switch.

Change-Id: Ibe1e50b41ca25b51537e4a0ad80dbd5184379133
CRs-Fixed: 593509
2014-01-17 16:00:31 +08:00
Subhash Chandra Bose Naripeddy 3eedc004e9 post_proc: Support effects in DSP for tunnel mode playback
Add interface to support configuring equlaizer, bass boost,
virtualizer and reverb effects in DSP for tunnel mode of
playback.

Change-Id: I9a93ad6136c4de06df5136967908b4e888dae44f
2013-11-29 01:25:46 -08:00