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

Commit 69e09b68 authored by Carter Hsu's avatar Carter Hsu Committed by android-build-merger
Browse files

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

am: 44aa3d33

Change-Id: Ibf3bda6f123bc883737dead3c661bb204e27f04d
parents f2768f74 44aa3d33
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,