qti_default.mk 4.9 KB

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