Merge "Audio: Ensure input stream gets closed on the audio HAL server side" am: d405ef1c19
am: 5bc9035530
am: d51753b418
am: cfbdd6d6e7
Change-Id: If02e1c5420b6618e2ef3cb496a38c281a3d0a1a4
This commit is contained in:
commit
c696a26c8a
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue