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

Commit dfe02c1a authored by Rajat Soni's avatar Rajat Soni
Browse files

BT: Correct SBC Bit-pool calculation logic

Correct SBC Bit-pool calculation logic

Bug: 399557651
Test: Exempt
Flag: EXEMPT, minor bugfix

Change-Id: I44f37388f77413083da98f6366e45ae9e41dcde6
parent 1a086472
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -486,7 +486,7 @@ bool A2dpOffloadCodecSbc::BuildConfiguration(
  }

  min_bitpool = std::max(min_bitpool, uint8_t(lcaps.get(kMinimumBitpool)));
  max_bitpool = std::max(max_bitpool, uint8_t(lcaps.get(kMaximumBitpool)));
  max_bitpool = std::min(max_bitpool, uint8_t(lcaps.get(kMaximumBitpool)));

  if (hint) {
    min_bitpool =