History log of /hardware/qcom/audio/visualizer/offload_visualizer.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8652b46b27d7c7d70afed7be5ad8fc2d7b1e49b2 15-Nov-2014 Ravi Kumar Alamanda <ralama@codeaurora.org> visualizer: do not apply calibration on audio routed to afe proxy

When compress offload playback is active, if the Visualizer effect
is enabled, decoded PCM audio is routed to AFE Proxy port and
read from it by the Visualizer wrapper library. When audio is routed
to proxy port, current output device specific calibration is also
being applied which is not desired.
Avoid this by sending default audio calibration i.e. no post-processing
to be applied the data.

Bug: 18390493

Change-Id: Id576c4ed7bbb482683074e3e33aa5760b7597d37
/hardware/qcom/audio/visualizer/offload_visualizer.c
41f86651e362abc62d9d03f5c612c986bf15298f 17-Jun-2014 Haynes Mathew George <hgeorge@codeaurora.org> post_proc: Offload effects combined patchset

* 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.
(cherry-picked from CAF commit 3eedc004e9adf5967f393d65c22b7806d0c63e6c)

* 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.

(cherry-picked from CAF commit d02f2cd710334cc2be6a866da537a595256ae623)

* 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.

(cherry-picked from CAF commit b27e25f062edfeebb6860078013c7b413b8c4301)

* 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.

(cherry-picked from CAF commit d45948e2153c03b41f55577debd943408f9c8280)

* 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.

(cherry-picked from CAF commit ca2685b2a0a695a7c4ac78883e750a92dcad0515)

* 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.

(cherry-picked from CAF ee2ff9621d25d83151ccb24a416f21533fdfbd31)

* 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.

(cherry-picked from CAF commit 95d74c2232721631f3a04f6ccf35760b37b33fea)

* 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.

(cherry-picked from CAF commit c37c260fa174453f4822261bcd531ddb2706ab2c)

* 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.

(cherry-picked from CAF commit 090a2aa3f38298196ad9f47e3b6578535e1f7e10)

* hal: Add support for audio effects in DSP for tunnel mode playback

Add support to enable or disable audio post processing effects
in DSP for tunnel mode playback.

(cherry-picked from CAF commit 1d0891672175d431e8872dd7dff21e0ce507361a)
Change-Id: I7ead6da4c216fd87e8ca1884811c4e0155053f49
/hardware/qcom/audio/visualizer/offload_visualizer.c
0de8d1f80ff3cf452e9eb867f780b22bf8c54115 02-Jul-2014 Eric Laurent <elaurent@google.com> audio: fixed channel count determination from channel mask

Do not use popcount() to derive channel count from channel mask.

Bug: 15000850.
Change-Id: Idaf241be22f85040c6461834bad60ae1d9244f32
/hardware/qcom/audio/visualizer/offload_visualizer.c
cc9649b4f1e7d109ed005819971c3d9657a19711 11-Jun-2014 Haynes Mathew George <hgeorge@codeaurora.org> audio: fix unused param warnings

Change-Id: Ibd6b6cc1c76030997ec33a3a038ef664393b7aeb
/hardware/qcom/audio/visualizer/offload_visualizer.c
19af91c3fe388314c0f6dec17af7c6b6e468ac68 18-Dec-2013 synergy dev <synergye@codefi.re> Visualizer: do not use GNU old-style field designators

Avoiding the use of GCC extensions improves code
portability

Change-Id: Iabe9fc84d135160367922e6d026e8608475fe8c8
/hardware/qcom/audio/visualizer/offload_visualizer.c
a6c11c11e2e7aee28b544674f1158b7b057c0c52 25-Sep-2013 Jean-Michel Trivi <jmtrivi@google.com> Level measurement in offloaded visualizer

Add Peak and RMS measurement capabilities in the "offloaded" version
of the visualizer effect.

Bug 8413913

Change-Id: I09a88f4cc791db6c68f0769dc23ced0d3aac955c
/hardware/qcom/audio/visualizer/offload_visualizer.c
c4aef75c2c5a0d49cac941d22235ac0b9e435ca0 13-Sep-2013 Eric Laurent <elaurent@google.com> add offloaded audio visualizer

Add library for visualizer effect used when
audio decompression is offloaded to QCOM audio DSP.
The implementation reads PCM back from the proxy port
in the audio DSP.
The audio HAL dynamically loads the effect library if present
and indicates offloaded output activity.
The PCM capture is only active when an offloaded output
is active and at least one effect is enabled on this output.

Bug: 8174410.

Change-Id: Ic78de932f9116e246494f9171c1cc7c3e35a0ea1
/hardware/qcom/audio/visualizer/offload_visualizer.c