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

Commit 2064a5c8 authored by Grzegorz Kołodziejczyk's avatar Grzegorz Kołodziejczyk Committed by Grzegorz Kolodziejczyk
Browse files

bass_client: If PAST is not supported inform sink to sync with no PAST

This modifies Add Source handling path, instead of `0x00: Do not
synchronize to PA` let's use `0x02: Synchronize to PA - PAST not
available` if PAST is not supported on device.

Tag: #feature
Test: atest BassClientServiceTest
Test: atest BassClientStateMachineTest
Bug: 323343735
Bug: 316005152
Change-Id: I5064fc66352b54535de9685559ebceadb262d0ef
parent 29ff541d
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1486,10 +1486,12 @@ public class BassClientStateMachine extends StateMachine {
        stream.write((metaData.getBroadcastId() & 0x0000000000FF0000) >>> 16);

        // PA_Sync
        if (!mDefNoPAS) {
            stream.write(0x01);
        if (mDefNoPAS) {
            // Synchronize to PA – PAST not available
            stream.write(0x02);
        } else {
            stream.write(0x00);
            // Synchronize to PA – PAST available
            stream.write(0x01);
        }

        // PA_Interval