platform_hardware_interfaces/audio/2.0/default
Mikhail Naganov 718b510080 audio: Fix StreamOut ownership in default wrapper
StreamOut::asyncCallback could became an owner of StreamOut
causing the destructor to be called on the offload callback
thread, while the legacy HAL is holding a mutex, which resulted
in a deadlock.

Removed erroneous usage of sp<StreamOut> in asyncCallback.
The legacy HAL joins the offload callback thread when closing
output stream, thus StreamOut destructor is guaranteed to finish
only after the offload callback thread has exited, and using
a raw pointer to StreamOut inside asyncCallback is correct.

Bug: 70863217
Change-Id: I0d77018cf3df5ad07251732733288d425dd836eb
Test: manual
2017-12-21 13:21:58 -08:00
..
android.hardware.audio@2.0-service.rc Move hidl shims to the vendor partition. (2/2) 2017-02-13 15:03:41 -08:00
Android.mk Merge "Use -Werror in hardware/interfaces/audio" 2017-11-28 19:03:31 +00:00
Conversions.cpp Audio HAL: fixes for issues discovered after client conversion 2016-12-01 13:48:58 -08:00
Conversions.h Implement audio devices and streams HAL delegating to legacy HAL 2016-11-15 08:52:39 -08:00
Device.cpp Merge "Revert "audiohal: Add diagnostics to investigate HAL call crashes"" into oc-dev 2017-06-01 16:32:29 +00:00
Device.h Revert "audiohal: Add diagnostics to investigate HAL call crashes" 2017-05-31 19:59:21 +00:00
DevicesFactory.cpp Revert "audiohal: Add diagnostics to investigate HAL call crashes" 2017-05-31 19:59:21 +00:00
DevicesFactory.h Remove HIDL_GENERATED from things written by hand. 2016-11-29 15:05:31 -08:00
OWNERS Add OWNERS for audio-related HAL default implementations 2017-07-14 17:14:53 +00:00
ParametersUtil.cpp audio HAL: fix getParameters status check. 2017-05-17 18:38:47 -07:00
ParametersUtil.h Revert "audiohal: Get rid of multiple inheritance in IDevice implementation" 2017-05-03 16:40:27 +00:00
PrimaryDevice.cpp Merge "Revert "audiohal: Add diagnostics to investigate HAL call crashes"" into oc-dev 2017-06-01 16:32:29 +00:00
PrimaryDevice.h Merge "Audio HAL: fixes for issues discovered after client conversion" 2016-12-02 00:06:16 +00:00
service.cpp Move Broadcast Radio HAL to a separate binary. 2017-08-28 09:45:40 -07:00
Stream.cpp audiohal: Prevent logspam when calling get_presentation_position 2017-05-23 21:03:36 +00:00
Stream.h Legacy wrapper: Use arbitrary limit on buffer size 2017-10-10 09:22:02 -07:00
StreamIn.cpp Merge "Fix inequality typo in StreamIn::getCapturePosition" 2017-11-29 20:46:08 +00:00
StreamIn.h audiohal: Fix UAF of HAL devices in Stream objects 2017-03-30 15:52:30 +00:00
StreamOut.cpp audio: Fix StreamOut ownership in default wrapper 2017-12-21 13:21:58 -08:00
StreamOut.h audiohal: Fix UAF of HAL devices in Stream objects 2017-03-30 15:52:30 +00:00
Util.h Audio HAL: A volume/gain outside of [0,1] is an error 2017-05-08 18:28:12 -07:00