Commit Graph

6 Commits

Author SHA1 Message Date
Sasha Smundak
59bc1b706d Convert voice_processing/Android.mk file to Android.bp
See build/soong/README.md for more information.

Bug: 122333478
Test: treehugger
Change-Id: I27f24ef6068620fbacd89f4124277805a4eb59ed
2020-02-04 17:09:50 -08:00
Sasha Smundak
feac53b1b3 Do not assign LOCAL_MULTILIB to AUDIOSERVER_MULTILIB
Bug: 121208203
Test: treehugger
Change-Id: I0fd14a697ccf95fd213734c64603ba0aa9aad38b
2019-12-09 09:41:56 -08:00
Kevin Rocard
b1021d5483 Revert "Audio V4: Split system and vendor Audio.h"
This reverts commit 3721141909.

Reason for revert: Breaks the build of multiple devices

Change-Id: I094b02b6b59baa107c532fc21fef945eaf2f4161
2018-01-24 06:13:02 +00:00
Kevin Rocard
3721141909 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>
2018-01-23 08:51:49 -08:00
Steven Moreland
0ff789a8cf libqcomvoiceprocessingdescriptors build with 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 libqcomvoiceprocessingdescriptors with BOARD_VNDK_VERSION=current
Bug: 37342627
Change-Id: Ic40abef2188ad4aa3a6c23a6d5729252f272f25e
2017-07-05 12:37:09 -07:00
David Lin
f0b9cd6c9d soundfx: add msm voice processing audio effects
Bug: 36865903

Change-Id: I56441244b208af93d654c5020b81df1f7b1800e8
Signed-off-by: David Lin <dtwlin@google.com>
2017-04-13 14:30:04 -07:00