replicant-frameworks_native/libs
Eric Laurent b3687ae925 Fix issue 2118464: cannot play ring tones and notifications after disconnecting BT headset while in call.
The problem comes from the fact that when the duplicated output is closed after BT headset disconnection, the OUTPUT_CLOSED notification is not sent to AudioSystem. Then the mapping between notification stream and duplicated output cached in AudioSystem is not cleared and next time a notification is played, the duplicated output is selected and the createTrack() request is refused by AudioFlinger as the selected output doesn't exist.
The notification is ignored by AudioFlinger because when it is sent by the terminating playback thread, the thread has already been removed from the playback thread list.

The fix consists in sending the notification in closeOutput() and not when exiting the playback thread.
The same fix is applied to record threads.
2009-09-15 07:10:12 -07:00
..
audioflinger Fix issue 2118464: cannot play ring tones and notifications after disconnecting BT headset while in call. 2009-09-15 07:10:12 -07:00
binder Add offset handling in MemoryHeapBase class 2009-08-20 03:55:20 -07:00
surfaceflinger add support for RGBX_8888 surfaces in SurfaceFlinger 2009-09-14 18:10:30 -07:00
ui make sure to update the tail pointer when undoing a dequeue 2009-09-14 15:48:42 -07:00
utils use broadcast() instead of signal() when signaling the condition-variable Thread::RequestExitAndWait() is waiting for 2009-09-09 02:45:26 -07:00