Commit Graph

27 Commits

Author SHA1 Message Date
Weiyin Jiang fd19e98310 post_proc: clean up stale audiosphere implementation
Now that we have GEF based implementation, clean up stale one.

CRs-Fixed: 2484430
Change-Id: I7dcad43401650c51e637fce202f5b45d40b3852e
2019-07-04 20:29:26 -07:00
Aalique Grahame 22e4910d3d audio: unify hal
Unify audio hal components

CRs-Fixed: 2380934
Change-Id: Iacafdc44d935de5f343240421a1572a0a3241bd0
2019-01-25 15:15:46 +05:30
Vinay Verma addfa4a100 Fix VNDK Compilation Errors
VNDK restrictions doesn't includes standard headers by
default, add them explicitly.

Change-Id: Icafac6f07fcdf58fccaabde8d472509090fb3e6f
2018-05-08 05:17:02 -07:00
Weiyin Jiang 90ac1ea515 post_proc: return proper volume in reply data for offload effect
Since EFFECT_FLAG_VOLUME_CTRL flag is set in non offload effect
implementations, EFFECT_CMD_SET_VOLUME should be handled in the same
manner as AOSP effect bundle.

In order for volume control to work, return the received volume in the
reply data.

CRs-Fixed: 2033812
Change-Id: Iee4cd3b80c1470034a208f0c5a014f10042a1ce2
2017-04-14 01:15:08 -07:00
Andy Hung eae4d56548 DO NOT MERGE Fix AudioEffect reply overflow
Bug: 28173666
Change-Id: I055af37a721b20c5da0f1ec4b02f630dcd5aee02
(cherry picked from commit 57fd9637536d40ec8c40a6bed76a71471dab0f64)
2016-08-04 10:20:10 -07:00
Ashish Jain 5106d36bb0 audio: Enable 24 bit packed direct pcm support.
-Add support for 24 bit packed audio in audio hal.
-Disable gapless for AV playback and direct pcm usecase,
this ensures that the buffering in DSP is not more.
-Simulate rendered time stamp for direct pcm usecase
based on the number of frames written to the compress
driver, bufferring in the driver and DSP latency.
-Pass mixer instance to offload effects library to avoid
an unnecessary mixer_open call, this optimizes audio
start delay in compress playback.

Change-Id: I422a53af5632eaf6cc362a6c44f62ff8412965f7
2016-05-31 05:17:13 -07:00
Preetam Singh Ranawat 5319430b65 hal : Fix data initialization and input validation errors
Initialize uninitialized variables and add null check to
 avoid following errors

 119251, 119255, 119256, 119257, 119258
 144012, 913366, 119249, 119250, 58938

Change-Id: I09d35977c9c3abf5819d5c72506c8d157158e212
2016-03-16 23:25:03 -07:00
Preetam Singh Ranawat 61716b1bcc Merge 9c4ba54b3e on remote branch
Change-Id: I5a80c57243eda5a4fdd98a233766cd622b4ef9a3
2015-12-14 11:55:32 +05:30
Dhananjay Kumar 1c978df84c post_proc: Audiosphere SA+ concurrency implementation
Audiosphere effect cannot be used along with any other SA+
effects, and needs handling for such concurrent use cases.
Add audiosphere controls to post_proc module, here both
audiosphere and SA+ events are made available providing
easy detection and handling for concurrent use cases.

Change-Id: Ifc2ac493442dda1fbe564b066fab0710a14d1759
2015-09-16 02:33:54 -07:00
Dhananjay Kumar 1e4061eeac post_proc: Audiosphere SA+ concurrency implementation
Audiosphere effect cannot be used along with any other SA+
effects, and needs handling for such concurrent use cases.
Add audiosphere controls to post_proc module, here both
audiosphere and SA+ events are made available providing
easy detection and handling for concurrent use cases.

Change-Id: Ifc2ac493442dda1fbe564b066fab0710a14d1759
2015-09-09 13:27:50 +05:30
Panwar Vivek b306983b0e Merge commit 'eb9127a942289de0cf9587d7456cc6c9a44eb411' into remote_branch
Change-Id: Ic630ae55085197a1bc7b79c726f7a0e39b9927b4
2015-07-13 19:10:23 +05:30
Linux Build Service Account 7d1d12a27f Merge "post_proc: fix crash in offload effect bundle during stop output" 2015-07-09 06:11:17 -07:00
Mingming Yin 497419fcb8 hal: compilation fix for extended feature flags
- Fix compilation error for offload, Dolby,
  HDMI pass through, FLAC decoder, and hardware
  accelerated effects when extended feature
  flags are disabled.

Change-Id: I5b36d7668f63a396ed930d62c0337c2c3f311c95
2015-07-06 10:44:23 -07:00
Dhananjay Kumar 30410f6f6e post_proc: fix crash in offload effect bundle during stop output
Effect bundle stop() frees mixer contol before doing module stop(),
whereas module's stop() still needs this control to send disable
command down the layer.
Crash is observed if memory associated with effect control is reused
and gets altered by the time mixer control is completed.
Move mixer control's deletion after module's stop() to fix this issue.

CRs-Fixed: 860604
Change-Id: Ia8b6d5f847b69392afbda1ba77fc740a47aba25d
2015-07-02 11:11:51 -07:00
Dhananjay Kumar b91d3d10ab post_proc: fix crash in offload effect bundle during stop output
Effect bundle stop() frees mixer contol before doing module stop(),
whereas module's stop() still needs this control to send disable
command down the layer.
Crash is observed if memory associated with effect control is reused
and gets altered by the time mixer control is completed.
Move mixer control's deletion after module's stop() to fix this issue.

CRs-Fixed: 860604
Change-Id: Ia8b6d5f847b69392afbda1ba77fc740a47aba25d
2015-06-29 17:10:33 +05:30
Sharad Sangle b27354b10e hal: compilation fix for extended feature flags
- Fix compilation error for offload, Dolby,
  HDMI pass through, FLAC decoder, and hardware
  accelerated effects when extended feature
  flags are disabled.

Change-Id: If64d5fa5d124b42d40d7e123b887db8e0a5d7426
2015-06-29 03:50:49 -07:00
Linux Build Service Account f57a1d460b Merge "post_proc: add PBE effect for speaker" 2015-04-12 08:08:35 -07:00
Dhananjay Kumar 5f15ff9b7d post_proc: add PBE effect for speaker
Enable PBE for speaker device.

Change-Id: I1a48dff038baf63376f1d4b355888159cf69ba81
2015-04-09 20:37:54 +05:30
Weiyin Jiang 625118efd4 post_proc: remove unnecessary command size check
Up bound check for command size of EFFECT_CMD_SET_PARAM is not
applicable for DSP effect bundle. Remove the check to avoid parameter
not taking effect.

Change-Id: I7e8f73377699f11bdc1f62a05f6bea03c9c24151
CRs-Fixed: 816053
2015-04-08 10:31:09 -07:00
Weiyin Jiang b64b7dd302 post_proc: add support for virtualizer capability query
Add extra virtualizer interfaces to keep align with aosp design.
Extended capabilities include:
- Stub interface to allow querying speaker angles.
- Force set output device as specific virtualize mode.
- Query virtualize mode

Stub function remains to be refined in sync with upcoming aosp
changes.

Change-Id: I3316f6d944db1c9954eda7643a5ce433defa1a6c
CRs-Fixed: 810294
2015-03-25 05:21:34 -07:00
Alexy Joseph d464f3b875 post_proc: Support Headphone:X in offload and non tunnel modes
Support Headphone:X in offload and non tunnel modes

Change-Id: Ib30d60bce67cb43556d58a2387735ce715d035a4
Signed-off-by: Alexy Joseph <alexyj@codeaurora.org>
2014-12-08 19:29:20 -08:00
Subhash Chandra Bose Naripeddy e40a7cd4a7 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>
2014-12-08 19:24:58 -08:00
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 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
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
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