qti_default.mk 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. bluetooth.profile.bap.broadcast.source.enabled=true \
  26. bluetooth.profile.bap.broadcast.assist.enabled=true \
  27. bluetooth.profile.bap.unicast.client.enabled=true \
  28. bluetooth.profile.csip.set_coordinator.enabled=true \
  29. bluetooth.profile.hap.client.enabled=true \
  30. bluetooth.profile.mcp.server.enabled=true \
  31. bluetooth.profile.ccp.server.enabled=true \
  32. bluetooth.profile.vcp.controller.enabled=true \
  33. ro.bluetooth.leaudio_offload.supported=true \
  34. persist.bluetooth.leaudio_offload.disabled=false \
  35. ro.vendor.audio_hal.ble_use_stream_id=true
  36. # Bluetooth HAL and Pixel extension
  37. DEVICE_MANIFEST_FILE += \
  38. device/google/lynx/bluetooth/manifest_bluetooth.xml
  39. BOARD_SEPOLICY_DIRS += device/google/lynx-sepolicy/bluetooth
  40. BOARD_HAVE_BLUETOOTH_QCOM = true
  41. BOARD_USES_COMMON_BLUETOOTH_HAL = true
  42. QCOM_BLUETOOTH_USING_DIAG = false
  43. TARGET_BLUETOOTH_HCI_V1_1 = true
  44. TARGET_BLUETOOTH_UART_DEVICE = "/dev/ttySAC18"
  45. UART_USE_TERMIOS_AFC = true
  46. TARGET_USE_QTI_BT_IBS = false
  47. TARGET_USE_QTI_BT_OBS = true
  48. TARGET_USE_QTI_BT_SAR_V1_1 = true
  49. TARGET_USE_QTI_BT_CHANNEL_AVOIDANCE = true
  50. # IBluetoothHci @1.1 / @1.0
  51. ifeq ($(TARGET_BLUETOOTH_HCI_V1_1),true)
  52. PRODUCT_PACKAGES += [email protected]
  53. else
  54. PRODUCT_PACKAGES += [email protected]
  55. endif
  56. # IBluetoothSar @1.1 / @1.0
  57. ifeq ($(TARGET_USE_QTI_BT_SAR_V1_1),true)
  58. PRODUCT_PACKAGES += [email protected]
  59. else ifeq ($(TARGET_USE_QTI_BT_SAR),true)
  60. PRODUCT_PACKAGES += [email protected]
  61. endif
  62. PRODUCT_PACKAGES += \
  63. [email protected] \
  64. [email protected]
  65. # Bluetooth SAR Tx power caps
  66. PRODUCT_COPY_FILES += \
  67. device/google/lynx/bluetooth/bluetooth_power_limits_L10_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_EU.csv \
  68. device/google/lynx/bluetooth/bluetooth_power_limits_L10_JP.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_JP.csv \
  69. device/google/lynx/bluetooth/bluetooth_power_limits_L10_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_US.csv
  70. # Bluetooth SAR test tools
  71. ifeq ($(TARGET_USE_QTI_BT_SAR_V1_1)$(TARGET_USE_QTI_BT_SAR),true)
  72. PRODUCT_PACKAGES_DEBUG += bluetooth_sar_test
  73. endif
  74. # Bluetooth (Vendor) SoC, BDA in device tree, and WiPower
  75. PRODUCT_PROPERTY_OVERRIDES += \
  76. vendor.qcom.bluetooth.soc=hastings \
  77. ro.vendor.bt.bdaddr_path=/proc/device-tree/chosen/config/bt_addr \
  78. ro.vendor.bluetooth.emb_wp_mode=false \
  79. ro.vendor.bluetooth.wipower=false
  80. ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
  81. PRODUCT_PROPERTY_OVERRIDES += \
  82. persist.vendor.service.bdroid.soclog=true \
  83. persist.vendor.service.bdroid.fwsnoop=true
  84. else
  85. PRODUCT_PROPERTY_OVERRIDES += \
  86. persist.vendor.service.bdroid.soclog=false \
  87. persist.vendor.service.bdroid.fwsnoop=false
  88. endif