Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b057c5bd authored by Jesse Melhuish's avatar Jesse Melhuish
Browse files

Floss: Re-enable HFP indicators

Stop defining BTIF_HF_FEATURES because it is hardcoded
in btif_hf.cc. Add BTA_AG_FEAT_HF_IND to get_hf_features
to enable HFP indicators.
Bug: 242217799
Tag: #floss
Test: mma -j32
Test: manual

Change-Id: Ifa92ed3bad9e57b35201939e502eef60650f532c
parent e19aa553
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -119,12 +119,6 @@ config("target_defaults") {
    "TARGET_FLOSS",
    "EXPORT_SYMBOL=__attribute__((visibility(\"default\")))",
    "FALLTHROUGH_INTENDED=[[clang::fallthrough]]",
    # BTIF_HF_FEATURES is not actually passed to btadapterd.
    # These features are hardcoded in system/btif/src/btif_hf.cc
    # BTA_AG_FEAT_ECS (Enhanced Call Status 0x040) |
    # BTA_AG_FEAT_CODEC (Codec Negotiation 0x200) |
    # BTA_AG_FEAT_UNAT (Codec Negotiation 0x20000)
    "BTIF_HF_FEATURES=0x00020240",
  ]

  if (!(defined(use.bt_nonstandard_codecs) && use.bt_nonstandard_codecs)) {
+2 −1
Original line number Diff line number Diff line
@@ -166,7 +166,8 @@ static uint32_t get_hf_features() {
          DEFAULT_BTIF_HF_FEATURES);
  return hf_features;
#elif TARGET_FLOSS
  return BTA_AG_FEAT_ECS | BTA_AG_FEAT_CODEC | BTA_AG_FEAT_UNAT;
  return BTA_AG_FEAT_ECS | BTA_AG_FEAT_CODEC | BTA_AG_FEAT_UNAT |
         BTA_AG_FEAT_HF_IND;
#else
  return DEFAULT_BTIF_HF_FEATURES;
#endif