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

Commit cfbdd6d6 authored by Mikhail Naganov's avatar Mikhail Naganov Committed by android-build-merger
Browse files

Merge "Audio: Ensure input stream gets closed on the audio HAL server side"...

Merge "Audio: Ensure input stream gets closed on the audio HAL server side" am: d405ef1c am: 5bc90355
am: d51753b4

Change-Id: I413caf61dcfd61ea4ebd5d0b225955e22a6994ef
parents 1135427e d51753b4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -117,6 +117,10 @@ TEST_F(AudioPrimaryHidlTest, GetMicrophonesTest) {
                ASSERT_NE(0U, activeMicrophones.size());
            }
            stream->close();
            // Workaround for b/139329877. Ensures the stream gets closed on the audio hal side.
            stream.clear();
            IPCThreadState::self()->flushCommands();
            usleep(1000);
            if (efGroup) {
                EventFlag::deleteEventFlag(&efGroup);
            }