qti_default.mk 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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=false \
  21. persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac
  22. # Bluetooth LE Audio
  23. PRODUCT_PRODUCT_PROPERTIES += \
  24. ro.bluetooth.leaudio_switcher.supported=true \
  25. ro.bluetooth.leaudio_offload.supported=true \
  26. persist.bluetooth.leaudio_offload.disabled=false \
  27. ro.vendor.audio_hal.ble_use_stream_id=true \
  28. bluetooth.profile.bap.unicast.client.enabled?=true \
  29. bluetooth.profile.csip.set_coordinator.enabled?=true \
  30. bluetooth.profile.hap.client.enabled?=true \
  31. bluetooth.profile.mcp.server.enabled?=true \
  32. bluetooth.profile.ccp.server.enabled?=true \
  33. bluetooth.profile.vcp.controller.enabled?=true \
  34. # Bluetooth LE Audio CIS handover to SCO
  35. # Set the property only if the controller doesn't support CIS and SCO
  36. # simultaneously. More details in b/242908683.
  37. PRODUCT_PRODUCT_PROPERTIES += \
  38. persist.bluetooth.leaudio.notify.idle.during.call=true
  39. # Not support LE Audio dual mic SWB call based on the current launch strategy
  40. PRODUCT_PRODUCT_PROPERTIES += \
  41. bluetooth.leaudio.dual_bidirection_swb.supported=false
  42. # LE Auido Offload Capabilities setting
  43. PRODUCT_COPY_FILES += \
  44. device/google/lynx/bluetooth/le_audio_codec_capabilities.xml:$(TARGET_COPY_OUT_VENDOR)/etc/le_audio_codec_capabilities.xml
  45. # LE Audio use classic connection by default
  46. PRODUCT_PRODUCT_PROPERTIES += \
  47. ro.bluetooth.leaudio.le_audio_connection_by_default=false
  48. # Bluetooth HAL and Pixel extension
  49. DEVICE_MANIFEST_FILE += \
  50. device/google/lynx/bluetooth/manifest_bluetooth.xml
  51. DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/lynx/bluetooth/device_framework_matrix_product.xml
  52. BOARD_SEPOLICY_DIRS += device/google/lynx-sepolicy/bluetooth
  53. BOARD_HAVE_BLUETOOTH_QCOM = true
  54. BOARD_USES_COMMON_BLUETOOTH_HAL = true
  55. QCOM_BLUETOOTH_USING_DIAG = false
  56. TARGET_BLUETOOTH_HCI_V1_1 = true
  57. TARGET_BLUETOOTH_UART_DEVICE = "/dev/ttySAC18"
  58. UART_USE_TERMIOS_AFC = true
  59. TARGET_USE_QTI_BT_IBS = false
  60. TARGET_USE_QTI_BT_OBS = true
  61. TARGET_USE_QTI_BT_SAR_V1_1 = true
  62. TARGET_USE_QTI_BT_CHANNEL_AVOIDANCE = true
  63. TARGET_DROP_BYTES_BEFORE_SSR_DUMP = true
  64. # IBluetoothHci @1.1 / @1.0
  65. ifeq ($(TARGET_BLUETOOTH_HCI_V1_1),true)
  66. PRODUCT_PACKAGES += [email protected]
  67. else
  68. PRODUCT_PACKAGES += [email protected]
  69. endif
  70. # IBluetoothSar @1.1 / @1.0
  71. ifeq ($(TARGET_USE_QTI_BT_SAR_V1_1),true)
  72. PRODUCT_PACKAGES += [email protected]
  73. else ifeq ($(TARGET_USE_QTI_BT_SAR),true)
  74. PRODUCT_PACKAGES += [email protected]
  75. endif
  76. PRODUCT_PACKAGES += \
  77. [email protected] \
  78. [email protected] \
  79. android.hardware.bluetooth.prebuilt.xml \
  80. android.hardware.bluetooth_le.prebuilt.xml
  81. # Bluetooth SAR Tx power caps
  82. PRODUCT_COPY_FILES += \
  83. device/google/lynx/bluetooth/bluetooth_power_limits_Lynx.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv \
  84. device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_G0DZQ_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G0DZQ_EU.csv \
  85. device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_GHL1X_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GHL1X_EU.csv \
  86. device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_G0DZQ_CA.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G0DZQ_CA.csv \
  87. device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_G0DZQ_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G0DZQ_US.csv \
  88. device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_GWKK3_CA.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GWKK3_cA.csv \
  89. device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_GWKK3_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GWKK3_US.csv \
  90. device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_G0DZQ_JP.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G0DZQ_JP.csv \
  91. device/google/lynx/bluetooth/bluetooth_power_limits_Lynx_G82U8_JP.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G82U8_JP.csv
  92. # Bluetooth SAR test tools
  93. ifneq (,$(filter true, $(TARGET_USE_QTI_BT_SAR_V1_1) $(TARGET_USE_QTI_BT_SAR)))
  94. PRODUCT_PACKAGES_DEBUG += bluetooth_sar_test
  95. endif
  96. # Bluetooth (Vendor) SoC, BDA in device tree, and WiPower
  97. PRODUCT_PROPERTY_OVERRIDES += \
  98. vendor.qcom.bluetooth.soc=hastings \
  99. ro.vendor.bt.bdaddr_path=/proc/device-tree/chosen/config/bt_addr \
  100. ro.vendor.bluetooth.emb_wp_mode=false \
  101. ro.vendor.bluetooth.wipower=false
  102. ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
  103. PRODUCT_PROPERTY_OVERRIDES += \
  104. persist.vendor.service.bdroid.soclog=true \
  105. persist.vendor.service.bdroid.fwsnoop=true
  106. else
  107. PRODUCT_PROPERTY_OVERRIDES += \
  108. persist.vendor.service.bdroid.soclog=false \
  109. persist.vendor.service.bdroid.fwsnoop=false
  110. endif