History log of /hardware/qcom/audio/post_proc/Android.mk
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
270b7762c1c6c7b69400ba28a2ea2bed7af1906a 30-Mar-2018 jasmine cha <chajasmine@android.com> audio: porting MAXXAUDIO

- use effect module to monitor stream's volume
- the control(maxxaudio) monitors active device and
changed volume from HAL, and send audio calibration
to acdb via acdb_loader.
- support specific USB headset

Enabled function:
- LR channels swap
- load external tuning table for volume preset feature

Bug: 74360112
Test: manual effect test, usb headset test
Change-Id: I9b35436d6abebcfa250beb4857dfa0be9248f2b5
/hardware/qcom/audio/post_proc/Android.mk
bae0dcb83f9c68af32b1cc673441b57e1c9329c6 24-Jan-2018 Kevin Rocard <krocard@google.com> Revert "Audio V4: Split system and vendor Audio.h"

This reverts commit c246f5eaa1dabda72eb3bcf3823d4cab65bd4e83.

Reason for revert: Breaks the build of multiple devices

Change-Id: I516d7467369f9a9b9872e7378c8b2eabc8b1d96e
/hardware/qcom/audio/post_proc/Android.mk
c246f5eaa1dabda72eb3bcf3823d4cab65bd4e83 18-Jan-2018 Kevin Rocard <krocard@google.com> Audio V4: Split system and vendor Audio.h

audio.h and its dependencies (audio-effect.h, sound_trigger.h...)
used to be shared between system and vendor code.

This led to multiple problems:

1) Such sharing contradicts the Treble policy of
strict independence of framework and vendor code.

2) When audio.h was changed, every vendor needed to update
its code in the next release. This meant that audio*.h
headers were mostly changed in backward compatible manner.
Nevertheless, for P the HIDL interface and thus the audio.h
interface are changed in backward incompatible way.
(Some enum are becoming 64 bit long).

3) As the headers were common, some API used only by the framework
needed to be visible to the vendors (mostly enum values).

4) Treble policy is to support at least one previous HAL version

As a result the audio*.h headers are now duplicated,
one set for the framework, and one for the vendor.

Each set will evolve independently. After this split,
the framework-only APIs will be removed from the vendor headers
and vice versa.

The split is implements as such:

+ for system code

- NOT moving the libaudio_system_headers
Eg: system/audio.h and system/audio_effects/effect_equalizer.h
are still in system/media/audio

- the legacy audio HAL API that were in libhardware headers
are now in libaudiohal_legacy_headers
Eg: hardware/audio.h and hardware/audio_effect.h
are now in frameworks/av/media/libaudiohal/legacy/

+ for vendor code

- moving libaudio_system_headers and the legacy audio HAL API
that were in libhardware_headers in
android.hardware.audio.common.legacy@2.0
Note that those headers are now versioned, so migrating to a @4.0
HIDL HAL will mean changing the legacy dependency too.
Eg: system/audio.h, system/audio-effect.h, hardware/audio.h
are now in hardware/interfaces/audio/common/2.0/legacy

- the legacy audio effect HAL API that was in libaudioeffects
is now moved in android.hardware.audio.effect.legacy@2.0
Eg: audio_effects/effect*.h are now in
hardware/interfaces/audio/effect/2.0/legacy

- the legacy sound trigger HAL API that were in libhardware_headers
is now moved in android.hardware.soundtrigger.legacy@2.0
Eg: hardware/sound_trigger.h is now in
hardware/interfaces/audio/effect/2.0/legacy

libaudioutil being used by both system and vendor, had
to be renamed for system to libaudioutil_system.

Vendor libs that now depend on the audio.h of a specific
version and are not extensively referenced in non google code,
append @2.0 to their name.

Note that headers that are not expected to change in the 4.0 HAL are
left in all-versions folder to avoid duplication.
This is an implementation detail as the versioned libraries export
the all-versions headers.

Note that strict vendor-system separation is enforced by the
build-system. The system headers are not available for vendor
libs and vice-versa.

Note that this patch is split between numerous git repository (>10),
all the commits having the same Change-id for searchability.

Note that audio_policy.h is no longer exposed to vendors
as the legacy audio policy HAL API was never officially supported.
As a result the audiopolicy stub implementation has been removed.

Test: compile taimen-userdebug walleye-userdebug
sailfish-userdebug marlin-userdebug
gce_x86_phone-userdebug gce_x86_phone
full-eng aosp_arm aosp_x86-eng
Test: check that the emulator booted and played audio
Test: full QA on sailfish-userdebug and taimen-userdebug
Bug: 38184704
Change-Id: I950f4e0a55613d72e32eba31bd563cb5bafe2d1a
Signed-off-by: Kevin Rocard <krocard@google.com>
/hardware/qcom/audio/post_proc/Android.mk
d101e021a9c3cdf235c10008546bde33a2052ea9 07-Nov-2017 Chih-hung Hsieh <chh@google.com> Merge "Use -Werror in hardware/qcom/audio" am: 63aebf862a am: 633ef83b6f
am: aac7a788d1

Change-Id: I8a2a0eecfc2543fb9a4704a867d10cc3a43787b2
aac7a788d1f9d371ba0cc886c9b487ab629cb4ef 07-Nov-2017 Chih-hung Hsieh <chh@google.com> Merge "Use -Werror in hardware/qcom/audio" am: 63aebf862a
am: 633ef83b6f

Change-Id: I681eb9db84f4b0d9046d8aa836ada6124d9a4ce5
aa016a5a3c6519713483bf58aa6fe6a6c0f670c4 06-Nov-2017 Chih-Hung Hsieh <chh@google.com> Use -Werror in hardware/qcom/audio

* Suppress existing warnings.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I389b943471ccdcfc9b7db4411fa3973d77303a27
/hardware/qcom/audio/post_proc/Android.mk
787b2f57d3b5931e999e523451bf8ba32e52b189 19-Oct-2017 David Lin <dtwlin@google.com> hardware/qcom: add support for sdm845

Bug: 67709607
Change-Id: Ia01df31fab0d50c4bc5f53bf29d20d5f135f3982
Signed-off-by: David Lin <dtwlin@google.com>
/hardware/qcom/audio/post_proc/Android.mk
0c87ff0550054ce735dfde2c0d4f406c48d0dbd9 28-Mar-2017 Vijay Venkatraman <vijaykv@google.com> Add libhardware_headers and libsystem_headers to modules

Bug: 33241851
Test: Build target and pass CTS audio
Change-Id: Ibf8b0662cd7aea5592522b3ead2d8eb2aaac6c04
/hardware/qcom/audio/post_proc/Android.mk
be28c5ccb3bada7761707e2d2e363f2ce73a8bc0 19-Apr-2017 David Lin <dtwlin@google.com> Merge "volume_listener: fix incorrect audio hal access" into oc-dev am: 3c67def445
am: c91c7c1f11

Change-Id: Icd64c4d587803e2488b14b91b2bd6a0ca1acceb7
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/Android.mk
f6aae037da61d2ec5327e157c0489dec1231f5c2 08-Apr-2017 David Lin <dtwlin@google.com> post_proc: add build for msm8998

Bug: 36865903

Change-Id: Iacc4301e1b4ce0fb20bc92dcfb8d970ae71f02c4
Signed-off-by: David Lin <dtwlin@google.com>
/hardware/qcom/audio/post_proc/Android.mk
8c83e0ad02470d53917fd1b24ed35e813f345451 17-Mar-2017 Diego Wilson <diegowilson@google.com> Move device dependent modules to /vendor

Test: lunch marlin; make vendorimage;
fastboot -w flash vendor vendor.img # on marlin

Change-Id: Iee5fa24eecb8f1b929a2a40eb9c982cc087fcb4f
/hardware/qcom/audio/post_proc/Android.mk
65dba39450a26f659fc6a14c1cbb2003681972ba 28-Jul-2016 Yamit Mehta <ymehta@codeaurora.org> post_proc: Enable post processing for msm8909

Enable post processing libraries for msm8909

Change-Id: I78308712f05c9e209b1a604c2b270cb6d8ed4908
/hardware/qcom/audio/post_proc/Android.mk
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/Android.mk
295916b21b797643d89aa96654588094f2555ace 04-Feb-2016 vivek mehta <mvivek@codeaurora.org> hal: enable audio hal on msm8996

- enable audio hal on msm8996

Change-Id: I54010a9a62166833dd1611d30039274f161adb8b
/hardware/qcom/audio/post_proc/Android.mk
a7cca24fea34b4d6fc0e43c7b6db9190d1acfec1 06-Feb-2016 Steve Pfetsch <spfetsch@google.com> Revert "hal: enable audio hal on msm8996"

This reverts commit 81f82dade75c5e27cf793a2fe06e428ef920ffa5.
/hardware/qcom/audio/post_proc/Android.mk
81f82dade75c5e27cf793a2fe06e428ef920ffa5 04-Feb-2016 vivek mehta <mvivek@codeaurora.org> hal: enable audio hal on msm8996

- enable audio hal on msm8996

Change-Id: I54010a9a62166833dd1611d30039274f161adb8b
/hardware/qcom/audio/post_proc/Android.mk
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/Android.mk
8954103418199da1a2744b65371d5b2621f78656 31-Mar-2015 Ajay Dudani <adudani@codeaurora.org> Enable support for msm8992 & msm8994 targets

Change-Id: I8da8a5b9885c7202d858b181d610aadc12544852
/hardware/qcom/audio/post_proc/Android.mk
f7c646835daca18cbfc0e060141e4deec8e65e3c 07-Aug-2014 Eric Laurent <elaurent@google.com> audio: fix razor checkbuild

Do not build post processing wrapper library on msm8960 platform.

Change-Id: I9e08f4e0a994a1605a81109c2d498ad58f2606f6
/hardware/qcom/audio/post_proc/Android.mk
97a1059da4d3aa8bfb0883d5f932f86b95876512 17-Jun-2014 Haynes Mathew George <hgeorge@codeaurora.org> audio: compilation & warning fixes for offload effects

Fix compilation errors & unused param warnings
in offload effect modules.

Change-Id: I58fa250c413e07702cf4a4f96aa85f985883b343
/hardware/qcom/audio/post_proc/Android.mk
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/post_proc/Android.mk