From e588f47ea3e0c9f2cf58a2f5219bd92c6935ad5c Mon Sep 17 00:00:00 2001 From: Jasmine Cha Date: Thu, 9 Mar 2023 10:02:23 +0800 Subject: [PATCH] audio: move audio hal hidl and mk to gs-common Bug: 259161622 Test: build pass and check audio function with HIDL service Change-Id: I4f177690e348610a955fb93511419057a925a0d7 Signed-off-by: Jasmine Cha --- device.mk | 56 +---------------------------- device_framework_matrix_product.xml | 16 --------- manifest.xml | 45 ----------------------- manifest_64.xml | 45 ----------------------- 4 files changed, 1 insertion(+), 161 deletions(-) diff --git a/device.mk b/device.mk index 0e6ebbd4..c621e337 100644 --- a/device.mk +++ b/device.mk @@ -996,61 +996,7 @@ PRODUCT_PACKAGES += \ # Audio # Audio HAL Server & Default Implementations -PRODUCT_PACKAGES += \ - android.hardware.audio.service \ - android.hardware.audio@7.1-impl \ - android.hardware.audio.effect@7.0-impl \ - android.hardware.bluetooth.audio-impl \ - android.hardware.soundtrigger@2.3-impl \ - vendor.google.whitechapel.audio.audioext@4.0-impl - -#Audio HAL libraries -PRODUCT_PACKAGES += \ - audio.primary.$(TARGET_BOARD_PLATFORM) \ - audio.platform.aoc \ - sound_trigger.primary.$(TARGET_BOARD_PLATFORM) \ - audio_bt_aoc \ - audio_tunnel_aoc \ - aoc_aud_ext \ - libaoctuningdecoder \ - libaoc_waves \ - liboffloadeffect \ - audio_waves_aoc \ - audio_fortemedia_aoc \ - audio_bluenote_aoc \ - audio_usb_aoc \ - audio_spk_35l41 \ - audio.usb.default \ - audio.usbv2.default \ - audio.bluetooth.default \ - audio.r_submix.default \ - libamcsextfile \ - audio_amcs_ext \ - - -#Audio Vendor libraries -PRODUCT_PACKAGES += \ - libfvsam_prm_parser \ - libmahalcontroller \ - libAlgFx_HiFi3z - -# AudioHAL Configurations -PRODUCT_COPY_FILES += \ - frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration_7_0.xml \ - frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration_7_0.xml \ - frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration_7_0.xml \ - frameworks/av/services/audiopolicy/config/hearing_aid_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/hearing_aid_audio_policy_configuration_7_0.xml \ - frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ - frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \ - frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ - frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ - -#Audio soong -PRODUCT_SOONG_NAMESPACES += \ - vendor/google/whitechapel/audio/hal \ - vendor/google/whitechapel/audio/interfaces - -$(call soong_config_set,aoc_audio_board,platform,$(TARGET_BOARD_PLATFORM)) +include device/google/gs-common/audio/hidl_gs101.mk ## AoC soong PRODUCT_SOONG_NAMESPACES += \ diff --git a/device_framework_matrix_product.xml b/device_framework_matrix_product.xml index 5490507d..f07987dc 100644 --- a/device_framework_matrix_product.xml +++ b/device_framework_matrix_product.xml @@ -131,14 +131,6 @@ default - - vendor.google.whitechapel.audio.audioext - 4.0 - - IAudioExt - default - - vendor.google.wifi_ext 1 @@ -165,12 +157,4 @@ rilExternal - - vendor.google.audiometricext - 1.0 - - IAudioMetricExt - default - - diff --git a/manifest.xml b/manifest.xml index 79cba3b7..18b39116 100644 --- a/manifest.xml +++ b/manifest.xml @@ -1,31 +1,4 @@ - - android.hardware.audio - hwbinder - 7.1 - - IDevicesFactory - default - - - - android.hardware.audio.effect - hwbinder - 7.0 - - IEffectsFactory - default - - - - android.hardware.soundtrigger - hwbinder - 2.3 - - ISoundTriggerHw - default - - android.hardware.media.omx hwbinder @@ -79,23 +52,5 @@ default - - vendor.google.whitechapel.audio.audioext - hwbinder - 4.0 - - IAudioExt - default - - - - vendor.google.audiometricext - hwbinder - 1.0 - - IAudioMetricExt - default - - diff --git a/manifest_64.xml b/manifest_64.xml index 10b1d475..3724ed7a 100644 --- a/manifest_64.xml +++ b/manifest_64.xml @@ -1,31 +1,4 @@ - - android.hardware.audio - hwbinder - 7.1 - - IDevicesFactory - default - - - - android.hardware.audio.effect - hwbinder - 7.0 - - IEffectsFactory - default - - - - android.hardware.soundtrigger - hwbinder - 2.3 - - ISoundTriggerHw - default - - android.hardware.graphics.mapper passthrough @@ -71,23 +44,5 @@ default - - vendor.google.whitechapel.audio.audioext - hwbinder - 4.0 - - IAudioExt - default - - - - vendor.google.audiometricext - hwbinder - 1.0 - - IAudioMetricExt - default - -