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

Commit 595e00b7 authored by Zach Johnson's avatar Zach Johnson
Browse files

Remove BTA_DM_AVOID_A2DP_ROLESWITCH_ON_INQUIRY, it's always true

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I332b906008d5176e5c2d6b613601df19d16cf2ea
parent cc31bfba
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -2722,14 +2722,11 @@ static bool bta_dm_check_av(uint16_t event) {
  uint8_t i;
  tBTA_DM_PEER_DEVICE* p_dev;

#if (BTA_DM_AVOID_A2DP_ROLESWITCH_ON_INQUIRY == TRUE)

  /* avoid role switch upon inquiry if a2dp is actively streaming as it
     introduces an audioglitch due to FW scheduling delays (unavoidable) */
  if (event == BTA_DM_API_SEARCH_EVT) {
    avoid_roleswitch = true;
  }
#endif

  APPL_TRACE_WARNING("bta_dm_check_av:%d", bta_dm_cb.cur_av_count);
  if (bta_dm_cb.cur_av_count) {
+0 −4
Original line number Diff line number Diff line
@@ -1230,10 +1230,6 @@
  "5)),(\"roam\",(0,1)),(\"battchg\",(0-5)),(\"callheld\",(0-2))"
#endif

#ifndef BTA_DM_AVOID_A2DP_ROLESWITCH_ON_INQUIRY
#define BTA_DM_AVOID_A2DP_ROLESWITCH_ON_INQUIRY TRUE
#endif

/******************************************************************************
 *
 * Tracing:  Include trace header file here.