commit | 15f97c996f29c780f52fe3504fabd08dbde066ba | [log] [tgz] |
---|---|---|
author | Phil Burk <philburk@google.com> | Tue Sep 04 14:06:27 2018 -0700 |
committer | Phil Burk <philburk@google.com> | Wed Sep 05 09:25:11 2018 -0700 |
tree | 8998772c04ba3863be56cc2c1c98c56f688dbf48 | |
parent | 0d97cec0533f47237b16b294fd92a827f2ebdc6f [diff] |
aaudio: set to SHARED when EXCLUSIVE fails SHARED streams and endpoints were being created with sharing mode set to EXCLUSIVE. This was confusing the close() code and caused a hang. Now we create a modified Request object with the sharing mode set correctly. Bug: 112709847 Test: Hack AAudioServiceEndpointMMAP so isBufferShareable is false. Test: 'adb shell write_sine_callback -pl -x -s2' should not hang. Change-Id: I7a5c8260beaffdd706f34d35ef00a61b072adb1d