Go to file
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
awt Removed system/framework/android.awt.jar. 2009-07-02 14:11:33 -05:00
camera/libcameraservice Pass return code from Camera HAL for setParameters(). 2009-09-13 17:12:35 -07:00
cmds Add tests and misc fixes on keystore. 2009-09-11 19:30:13 +08:00
include Merge change 24947 into eclair 2009-09-14 19:01:40 -04:00
libs Fix issue 2118464: cannot play ring tones and notifications after disconnecting BT headset while in call. 2009-09-15 07:10:12 -07:00
opengl AGL's glCompressedTexImage2D now checks the imageSize parameter. 2009-09-10 17:13:28 -07:00
vpn/java/android/net/vpn Simplifies err code propagation. 2009-08-28 09:59:39 +08:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
NOTICE Start using CLDR for some date-and-time strings and formats. 2009-05-15 10:15:50 -07:00