BT: add sysprop to enable OPUS codec

Add new system proprty persist.bluetooth.opus.enabled to
indicate devices enable OPUS codec.

Bug: 254609888
Test: atest net_test_stack:A2dpCodecConfigTest#init
Change-Id: I3741ea42b5513ae1dd0cb7609301953a13861293
This commit is contained in:
kuanyuhuang 2022-10-27 09:53:49 +00:00 committed by Tom Huang
parent a9187a3fae
commit 1eda2f37e7
3 changed files with 10 additions and 0 deletions

View file

@ -10,3 +10,5 @@ SarBackOffHighResolution = true
BqrEventMaskValueUpdate = 262238
BtA2dpOffloadCap = sbc-aac-aptx-aptxhd-ldac-opus
BtOpusEnabled = true

View file

@ -164,6 +164,10 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES_DEBUG += \
hci_inject
# Bluetooth OPUS codec
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.opus.enabled=true
# Bluetooth Tx power caps
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/bluetooth/bluetooth_power_limits_cheetah.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv \

View file

@ -147,6 +147,10 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES_DEBUG += \
hci_inject
# Bluetooth OPUS codec
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.opus.enabled=true
# Bluetooth Tx power caps
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/bluetooth/bluetooth_power_limits_panther.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv \