sm7125-common: Enable AOSP bluetooth audio HAL v2

Change-Id: I4d12752ae5fb2829d6612647c8740c84967f5434
fourteen-wip
dianlujitao 5 years ago committed by Simon1511
parent 22c3c99e41
commit 1e33bff1ae
  1. 8
      common.mk
  2. 7
      configs/audio/audio_policy_configuration.xml
  3. 9
      configs/manifest.xml

@ -77,7 +77,6 @@ PRODUCT_PACKAGES += \
android.hardware.audio.effect@6.0-impl \ android.hardware.audio.effect@6.0-impl \
android.hardware.soundtrigger@2.2-impl \ android.hardware.soundtrigger@2.2-impl \
audio.a2dp.default \ audio.a2dp.default \
audio.bluetooth.default \
audio.r_submix.default \ audio.r_submix.default \
audio.usb.default \ audio.usb.default \
libaudioalsa \ libaudioalsa \
@ -98,7 +97,8 @@ PRODUCT_COPY_FILES += \
$(COMMON_PATH)/configs/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \ $(COMMON_PATH)/configs/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
$(COMMON_PATH)/configs/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \ $(COMMON_PATH)/configs/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.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/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/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
@ -106,7 +106,9 @@ PRODUCT_COPY_FILES += \
# Bluetooth # Bluetooth
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
vendor.qti.hardware.bluetooth_audio@2.0.vendor \ vendor.qti.hardware.bluetooth_audio@2.0.vendor \
com.qualcomm.qti.bluetooth_audio@1.0.vendor com.qualcomm.qti.bluetooth_audio@1.0.vendor \
audio.bluetooth.default \
android.hardware.bluetooth.audio@2.0-impl
# Camera # Camera
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \

@ -113,12 +113,15 @@
</module> </module>
<!-- A2dp Audio HAL --> <!-- A2dp Input Audio HAL -->
<xi:include href="a2dp_audio_policy_configuration.xml"/> <xi:include href="a2dp_in_audio_policy_configuration.xml"/>
<!-- Remote Submix Audio HAL --> <!-- Remote Submix Audio HAL -->
<xi:include href="r_submix_audio_policy_configuration.xml"/> <xi:include href="r_submix_audio_policy_configuration.xml"/>
<!-- Bluetooth Audio HAL -->
<xi:include href="bluetooth_audio_policy_configuration.xml"/>
</modules> </modules>
<!-- End of Modules section --> <!-- End of Modules section -->

@ -40,6 +40,15 @@
<fqname>@1.0::IBluetoothHci/default</fqname> <fqname>@1.0::IBluetoothHci/default</fqname>
</hal> </hal>
<hal format="hidl"> <hal format="hidl">
<name>android.hardware.bluetooth.audio</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>IBluetoothAudioProvidersFactory</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" override="true">
<name>android.hardware.camera.provider</name> <name>android.hardware.camera.provider</name>
<transport>hwbinder</transport> <transport>hwbinder</transport>
<version>2.6</version> <version>2.6</version>

Loading…
Cancel
Save