qti_default.mk 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #
  2. # Copyright (C) 2021 The Android Open-Source Project
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. # Bluetooth Services sysprop for A2DP AAC VBR and A2DP offloading
  17. PRODUCT_PRODUCT_PROPERTIES += \
  18. persist.bluetooth.a2dp_aac.vbr_supported=true \
  19. ro.bluetooth.a2dp_offload.supported=true \
  20. persist.bluetooth.a2dp_offload.disabled=true \
  21. persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac
  22. # Bluetooth HAL and Pixel extension
  23. DEVICE_MANIFEST_FILE += \
  24. device/google/lynx/bluetooth/manifest_bluetooth.xml
  25. BOARD_SEPOLICY_DIRS += device/google/lynx-sepolicy/bluetooth
  26. BOARD_HAVE_BLUETOOTH_QCOM = true
  27. BOARD_USES_COMMON_BLUETOOTH_HAL = true
  28. QCOM_BLUETOOTH_USING_DIAG = false
  29. TARGET_BLUETOOTH_HCI_V1_1 = true
  30. TARGET_BLUETOOTH_UART_DEVICE = "/dev/ttySAC18"
  31. UART_USE_TERMIOS_AFC = true
  32. TARGET_USE_QTI_BT_IBS = false
  33. TARGET_USE_QTI_BT_OBS = false
  34. TARGET_USE_QTI_BT_SAR_V1_1 = true
  35. TARGET_USE_QTI_BT_CHANNEL_AVOIDANCE = true
  36. # IBluetoothHci @1.1 / @1.0
  37. ifeq ($(TARGET_BLUETOOTH_HCI_V1_1),true)
  38. PRODUCT_PACKAGES += [email protected]
  39. else
  40. PRODUCT_PACKAGES += [email protected]
  41. endif
  42. # IBluetoothSar @1.1 / @1.0
  43. ifeq ($(TARGET_USE_QTI_BT_SAR_V1_1),true)
  44. PRODUCT_PACKAGES += [email protected]
  45. else ifeq ($(TARGET_USE_QTI_BT_SAR),true)
  46. PRODUCT_PACKAGES += [email protected]
  47. endif
  48. PRODUCT_PACKAGES += \
  49. [email protected] \
  50. [email protected]
  51. # Bluetooth SAR test tools
  52. ifeq ($(TARGET_USE_QTI_BT_SAR_V1_1)$(TARGET_USE_QTI_BT_SAR),true)
  53. PRODUCT_PACKAGES_DEBUG += bluetooth_sar_test
  54. endif
  55. # Bluetooth (Vendor) SoC, BDA in device tree, and WiPower
  56. PRODUCT_PROPERTY_OVERRIDES += \
  57. vendor.qcom.bluetooth.soc=hastings \
  58. ro.vendor.bt.bdaddr_path=/proc/device-tree/chosen/config/bt_addr \
  59. ro.vendor.bluetooth.emb_wp_mode=false \
  60. ro.vendor.bluetooth.wipower=false
  61. ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
  62. PRODUCT_PROPERTY_OVERRIDES += \
  63. persist.vendor.service.bdroid.soclog=true \
  64. persist.vendor.service.bdroid.fwsnoop=true
  65. else
  66. PRODUCT_PROPERTY_OVERRIDES += \
  67. persist.vendor.service.bdroid.soclog=false \
  68. persist.vendor.service.bdroid.fwsnoop=false
  69. endif