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

Commit d0cce2eb authored by Carter Hsu's avatar Carter Hsu
Browse files

audio: correct the boundary of soundtrigger index



Bug: 129111371
Test: manual
Change-Id: Ic3e2d5b8b6b53be2184307b076ba8680c6f81a29
Signed-off-by: default avatarCarter Hsu <carterhsu@google.com>
parent 2ddd17ca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2025,7 +2025,7 @@ exit:
                device->getId() : AUDIO_PORT_HANDLE_NONE;

    isSoundTrigger = attributes.source == AUDIO_SOURCE_HOTWORD &&
        mSoundTriggerSessions.indexOfKey(session) > 0;
        mSoundTriggerSessions.indexOfKey(session) >= 0;
    *portId = AudioPort::getNextUniqueId();

    clientDesc = new RecordClientDescriptor(*portId, riid, uid, session, attributes, *config,