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

Commit e5392530 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
parent a6208471
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -412,11 +412,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.