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

Commit 34a2d4c8 authored by Carter Hsu's avatar Carter Hsu Committed by Android (Google) Code Review
Browse files

Merge "audio: correct the boundary of soundtrigger index" into qt-dev

parents e6f3293b d0cce2eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2042,7 +2042,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,