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: I1df3d6de1b4c4020fb214b4a9fe2f4fe8b347195
diff --git a/bluetooth/bt_vendor_overlay.conf b/bluetooth/bt_vendor_overlay.conf
index d5212db..4208da8 100644
--- a/bluetooth/bt_vendor_overlay.conf
+++ b/bluetooth/bt_vendor_overlay.conf
@@ -1,3 +1,5 @@
# This is BTBCM HAL overlay configuration file.
BtA2dpOffloadCap = sbc-aac-aptx-aptxhd-ldac-opus
+
+BtOpusEnabled = true
diff --git a/device-oriole.mk b/device-oriole.mk
index 176175b..812ce1a 100644
--- a/device-oriole.mk
+++ b/device-oriole.mk
@@ -267,3 +267,7 @@
# Enable adpf cpu hint session for SurfaceFlinger
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
debug.sf.enable_adpf_cpu_hint=true
+
+# Bluetooth OPUS codec
+PRODUCT_PRODUCT_PROPERTIES += \
+ persist.bluetooth.opus.enabled=true
diff --git a/device-raven.mk b/device-raven.mk
index 19e940b..e97a150 100644
--- a/device-raven.mk
+++ b/device-raven.mk
@@ -280,3 +280,7 @@
# Enable adpf cpu hint session for SurfaceFlinger
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
debug.sf.enable_adpf_cpu_hint=true
+
+# Bluetooth OPUS codec
+PRODUCT_PRODUCT_PROPERTIES += \
+ persist.bluetooth.opus.enabled=true