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

Commit 5a5bbbaf authored by xiaowang's avatar xiaowang Committed by Jack He
Browse files

bass_client: Fix codecId cast issue

Bug: 229965085
Test: compile
Change-Id: Ie738e73d88dd7306d957f6d59928312a57154f43
Merged-In: Ie738e73d88dd7306d957f6d59928312a57154f43
(cherry picked from commit e5392530)
parent f96fabb5
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -436,11 +436,7 @@ public class BassClientStateMachine extends StateMachine {
                channel.setSelected(false);
                subGroup.addChannel(channel.build());
            }
            subGroup.setCodecId((long)(baseLevel2.codecId[4] << 32
                    | baseLevel2.codecId[3] << 24
                    | baseLevel2.codecId[2] << 16
                    | baseLevel2.codecId[1] << 8
                    | baseLevel2.codecId[0]));
            subGroup.setCodecId(ByteBuffer.wrap(baseLevel2.codecId).getLong());
            subGroup.setCodecSpecificConfig(BluetoothLeAudioCodecConfigMetadata.
                    fromRawBytes(baseLevel2.codecConfigInfo));
            subGroup.setContentMetadata(BluetoothLeAudioContentMetadata.