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

Commit c696a26c 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
am: cfbdd6d6

Change-Id: If02e1c5420b6618e2ef3cb496a38c281a3d0a1a4
parents 55458ad4 cfbdd6d6
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);
            }