diff options
author | Mikhail Naganov <mnaganov@google.com> | 2019-09-03 17:16:05 -0700 |
---|---|---|
committer | Mikhail Naganov <mnaganov@google.com> | 2019-10-11 19:32:57 +0000 |
commit | eb794151c6dda199939654834dc11a515a86b5ba (patch) | |
tree | 0ad5dd6a22a893fab24e55d10998a83003e8498e /identity/support/src/cppbor_parse.cpp | |
parent | 21f3eeb2fe00c4942c46d1bca9ff5e636fd30920 (diff) |
Audio: Ensure input stream gets closed on the audio HAL server side
As IStream::close only releases internal resources of the stream,
deferring actual stream closing to IStream server object
destruction, which is delivered to the audio HAL server
asynchronously, there is a possibility for a race condition
when streams gets opened and closed in a tight loop as in the VTS
test.
Work around this problem by flushing RPC messages between
the client and the server, and inserting a delay before opening
a new stream.
Bug: 139329877
Test: VtsHalAudioV5_0TargetTest#AudioPrimaryHidlTest.GetMicrophonesTest
Change-Id: Id8744f6f21fd3bfa607f489364925eccbab17b5e
(cherry picked from commit 26f868bb02a7264912435bde4ea21020577c1593)
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions