Add legacy bluetooth audio hal into audio hal

Bug: 194607747
Test: build pass, legacy A2DP pass.
Change-Id: Ic8c09bcaad57945ffdd58ea5f8136a93350fa9a3
This commit is contained in:
weichinweng 2021-08-23 13:46:24 +08:00
parent af11b608f1
commit 6159256942
2 changed files with 12 additions and 3 deletions

View file

@ -953,8 +953,8 @@ PRODUCT_PACKAGES += \
android.hardware.audio@7.0-impl \
android.hardware.audio.effect@7.0-impl \
android.hardware.soundtrigger@2.3-impl \
vendor.google.whitechapel.audio.audioext@2.0-impl
# android.hardware.bluetooth.audio@2.1-impl \
vendor.google.whitechapel.audio.audioext@2.0-impl \
android.hardware.bluetooth.audio@2.1-impl
#
##Audio HAL libraries
@ -997,8 +997,8 @@ PRODUCT_COPY_FILES += \
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 \
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/bluetooth_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration_7_0.xml \
##Audio soong
PRODUCT_SOONG_NAMESPACES += \
vendor/google/whitechapel/audio/hal \

View file

@ -93,6 +93,15 @@
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.bluetooth.audio</name>
<transport>hwbinder</transport>
<version>2.1</version>
<interface>
<name>IBluetoothAudioProvidersFactory</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.boot</name>
<transport>hwbinder</transport>