History log of /hardware/qcom/audio/post_proc/volume_listener.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4012509d42c0081cdef9d824d35b5e9205a137a1 22-Aug-2017 vivek mehta <mvivek@codeaurora.org> hal: use stream specific app type for MBDRC

- when multi app type is supported use stream specific app type
- enforce custome volume MBDRC level to start from > 0 level
- add speaker safe as valid mbdrc supported device

Bug: 64774822
Test: phone call, duo call and video playback over speaker and headset

Change-Id: I4cb484bbd1ff8a46432c82738d67164799928ff2
/hardware/qcom/audio/post_proc/volume_listener.c
ddad829c968342f0f04c08817ad672da0d54c35f 19-Jul-2017 Mikhail Naganov <mnaganov@google.com> volume listener: provide more debugging info when effect desc is null am: e02448b3c3
am: 20bd96e6d9

Change-Id: Ied77f2dfc09a721ba0a05a32311eaf42655ff1b5
e02448b3c3006bbe736fa28a5707224f06c38cf5 19-Jul-2017 Mikhail Naganov <mnaganov@google.com> volume listener: provide more debugging info when effect desc is null

Since this is some abnormal condition, dump the volume effects list
regardless of the 'dumping_enable' flag state.

Bug: 63780779
Test: more debug info is provided when the error condition encountered
Change-Id: I4523414cbe4a9da1bcea6e181e115053cdcee9a9
/hardware/qcom/audio/post_proc/volume_listener.c
0364c87bca389ea16b5718f1e7eb9173fc29772f 19-Jul-2017 Mikhail Naganov <mnaganov@google.com> volume listener: check for correct effect descriptor when releasing am: 700923e3bd
am: 6afb304f8d

Change-Id: I4911e92b8d65528a88d10555cb0afa3f25920a40
700923e3bdc9d83f9cde1c49d4271a435276e7a9 19-Jul-2017 Mikhail Naganov <mnaganov@google.com> volume listener: check for correct effect descriptor when releasing

It is possible that the effect descriptor in the listener
context is NULL. Attempting to access its fields would result
in a SIGSEGV. Add a check to avoid crashing.

Bug: 63780779
Test: HAL should not be crashing in vol_prc_lib_release
Change-Id: I241890840acab56e0c706ffca542fa2b1ffef02a
/hardware/qcom/audio/post_proc/volume_listener.c
591215ac37fff099ee35760baf5238915492f385 30-Jun-2017 Steven Moreland <smoreland@google.com> Make libqcompostprocbundle build with the VNDK.

When the vndk is enabled (BOARD_VNDK_VERSION=current),
vendor libraries must only link against vendor variants
in the build system. This means that they receive restricted
sets of headers and that automatic global headers are restricted.

Test: build libqcompostprocbundle with BOARD_VNDK_VERSION=current
Bug: 37342627
Change-Id: I213c4937f64e811d8018806982dc299c3e7e668a
/hardware/qcom/audio/post_proc/volume_listener.c
a68fea653241619e8b4b5ad5f21a2415a03a06db 09-Jun-2017 vivek mehta <mvivek@codeaurora.org> audio: Dedicated usecase for voip call (uplink and downlink)

Add dedicated usecases for voip call.

coauthored-by: Vikram Panduranga <vpandura@codeaurora.org>

Bug: 62393776
Test: hangout call
Change-Id: Iff8911aa8d4f072923e2f2649098a44a4bc4485c
Signed-off-by: David Lin <dtwlin@google.com>
/hardware/qcom/audio/post_proc/volume_listener.c
07a3fe9b04e3f4c1fad89292154705844947dc69 12-Apr-2017 David Lin <dtwlin@google.com> volume_listener: fix incorrect audio hal access

This patch makes the change to first attempt to access the primary audio
hal located in the vendor partition, if the access failed, it will then
attempt to access the system partition to maintain backward
compatibility.

Bug: 37282675
Test: Music playback with max volume using Marlin
Change-Id: Id20cf839608cf1813b00355fff32192c82ff1d5a
Signed-off-by: David Lin <dtwlin@google.com>
/hardware/qcom/audio/post_proc/volume_listener.c
24b4e9cf7ca53f32ad216f84d382304abbe8a642 22-Dec-2016 rago <rago@google.com> Fix for audio distortion on speaker

Use the energy sum of all tracks in the volume_listener effect
instead of the max energy.

Bug: 33751694
Test: using piano application and youtube
Change-Id: I5a5a1ff18c72e737ca56102fc1b7e0368d646f6c
/hardware/qcom/audio/post_proc/volume_listener.c
48c824319feedc97e3ed44ca40c7dc83f3de91dd 05-Nov-2016 Andy Hung <hunga@google.com> Fix error handling return on volume listener

Test: Custom crafted test
Bug: 32669549
Change-Id: I17218ae7c5b046c89419e0040784788df20be774
/hardware/qcom/audio/post_proc/volume_listener.c
df65ad4ac45b428cb1c20abced6563659397cd82 15-Sep-2016 Eric Laurent <elaurent@google.com> volume listener: declare no process flag

Add flag indicating no process function is implemented and
remove process function.

Bug: 31491112
Change-Id: Ia44a78e928ac31112ced498403416987320b1d5c
/hardware/qcom/audio/post_proc/volume_listener.c
fb4d7bd389fc087ed36712cbd585367e7e6d0fad 29-Apr-2016 vivek mehta <mvivek@codeaurora.org> hal: retry failed MBDRC cal level

- in the start of the playback since usecase list is empty
or not populated with the current usecase (which will be added
on the first write) unless volume is changed when playing music
correct gain level is not selected
- cache gain level on failure and trigger set gain level when a
new usecase is added

Bug 30503798 29933450

Change-Id: I3d199a2810d34a693a099e3cf4b635d5b156a317
/hardware/qcom/audio/post_proc/volume_listener.c
a8d7c9257c3c9514f5c35d3dbd987703e12c82cd 25-May-2016 vivek mehta <mvivek@codeaurora.org> hal: add support to override volume gain to step mapping table

- if customer mapping is added in platform info file, use that
- in absence of customer table use default mapping

BUG 28897755
Change-Id: I4bf8bcf1913f16ad6298ff1f3fa5dd649c889b2a
/hardware/qcom/audio/post_proc/volume_listener.c
383f816d6b5349e4be8ba2df9bebc59cf934e50a 08-Jan-2016 Eric Laurent <elaurent@google.com> post proc: volume listener: remove unecessary warning log

Remove warning logged in vol_effect_process() in a legitimate
situation where input and output buffer are the same.

Change-Id: Icce8e22d7d78b7577bac5a1a443e1b0527b33899
/hardware/qcom/audio/post_proc/volume_listener.c
93ab6fdda7b7557ccb34372670c30fa6178f8426 04-Dec-2015 Eric Laurent <elaurent@google.com> post proc : volume listener : fix effect release crash

Fix access to deleted effect context in vol_prc_lib_release()

Bug: 25753245.
Change-Id: I64ca99e4d5d09667be4c8c605f66700b9ae67949
/hardware/qcom/audio/post_proc/volume_listener.c
7963d3828318a32c7a17a240006696e780fd0502 11-Sep-2015 Eric Laurent <elaurent@google.com> volume listener: fix process() function for accumulate mode.

Honor output buffer accumulation mode requested by config command.

Bug: 23796255.
Change-Id: I349682d5f76e343a16e4e41f7ad556ecbb697aa3
/hardware/qcom/audio/post_proc/volume_listener.c
591ef60fb95d863cb8f3a3923d59bc36c8cd4b8c 09-Sep-2015 Andy Hung <hunga@google.com> volume_listener: fix release

use safe iteration of list when removing node.

Bug: 23731264
Change-Id: I6d0c51638b6a3de684cf595833dc4d0fc7e8c8b5
/hardware/qcom/audio/post_proc/volume_listener.c
4c1b10d3b67414b7931ffcbdbd6de2776d251ef2 12-Aug-2015 vivek mehta <mvivek@codeaurora.org> hal: MBDRC: send MBDRC step level only for speaker device

- set MBDRC level only for speaker device. Ignore combo device
- this will fix printing wrong failure log in case Headphone is connect
and alarm / notification is played.

BUG=23362209

Change-Id: I675dfa1da0546483068f737d61ca0f2dd311ce52
/hardware/qcom/audio/post_proc/volume_listener.c
1a9b7c0f180df7fe390f2839e8214667727aaa49 25-Jun-2015 vivek mehta <mvivek@codeaurora.org> hal: post_proc: add volume based audio calibration support

- add new effect module to listen to volume and device change
- based on volume levels of all streams active over speaker
compute gain based calibration level and communicate
with audio HAL to send the same to ACDB loader
- make audio HAL singleton

Bug: 22100304.

Change-Id: If74bf66d32def85022d79ccb9f84c3b85c8a2dc9
/hardware/qcom/audio/post_proc/volume_listener.c