[BT] Add sysprop to enable OPUS codec

Add system property to enable OPUS codec and offload at BT side.

Bug: 353143865
Bug: 353161316
Test: build and check system property at real device
Flag: com.android.media.audio.stereo_spatialization
Change-Id: I4136e73b8705c581512842786a3a85558a02f191
This commit is contained in:
kuanyuhuang 2024-07-15 08:21:17 +00:00
parent 849e21af12
commit 6393d5a3cf
2 changed files with 8 additions and 0 deletions

View file

@ -25,3 +25,7 @@ BtHalRecoveryByRestart = true
# Update BQR Event Mask property value
BqrEventMaskValueUpdate = 295006
BtA2dpOffloadCap = sbc-aac-aptx-aptxhd-ldac-opus
BtOpusEnabled = true

View file

@ -127,6 +127,10 @@ PRODUCT_PROPERTY_OVERRIDES += \
persist.bluetooth.a2dp_offload.disabled=false \
persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-opus
# Bluetooth OPUS codec
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.opus.enabled=true
# Bluetooth Tx power caps
PRODUCT_COPY_FILES += \
device/google/tegu/bluetooth/bluetooth_power_limits.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv