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

Commit cafe54bb authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

leaudio: Fix calculating needed ases

Found when testing with devices requesting two cises to single device.

Bug: 244431175
Test: atest BluetoothInstrumentationTests
Tag: #feature
Merged-In: If9d929cab8fb2275368d17aaa285403e156aea2b
Change-Id: If9d929cab8fb2275368d17aaa285403e156aea2b
(cherry picked from commit d7cf3bfc)
parent 638d1538
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -93,10 +93,10 @@ void get_cis_count(const AudioSetConfigurations* audio_set_confs,
        break;
      }
      if (ent.direction == kLeAudioDirectionSink) {
        snk_src_pair.first += ent.device_cnt;
        snk_src_pair.first += ent.ase_cnt;
      }
      if (ent.direction == kLeAudioDirectionSource) {
        snk_src_pair.second += ent.device_cnt;
        snk_src_pair.second += ent.ase_cnt;
      }
    }