replicant-frameworks_native/libs/audioflinger
Eric Laurent 09b4ba82d7 Issue 2265163: Audio still reported routed through earpiece on sholes
This is a second attempt to fix the audio routed to earpiece syndrom.
The root cause identified this time is the crash of an application having an active AudioTrack playing on the VOICE_CALL stream type.
When this happens, the AudioTrack destructor is not called and the audio policy manager is not notified of the track stop.
Results a situation where the VOICE_CALL stream is considered as always in use by audio policy manager which makes that audio is routed to earpiece.

The fix consists in moving the track start/stop/close notification to audio policiy manager from AudioTrack to AudioFlinger Track objet.
The net result is that in the case of a client application crash, the AudioFlinger TrackHandle object (which implements the remote side of the IAudioTrack binder interface) destructor is called which in turn destroys the Track object and we can notify the audio policy manager of the track stop and removal.

The same modification is made for AudioRecord although no bug related to record has been reported yet.
Also fixed a potential problem if record stop is called while the record thread is exiting.
2009-11-19 23:57:45 -08:00
..
A2dpAudioInterface.cpp Fix issue 2174002: After rejecting Call when device ringtone is mute and playing music, audio is not transfered to BT device. 2009-10-08 12:03:51 -07:00
A2dpAudioInterface.h Fix issue 2174002: After rejecting Call when device ringtone is mute and playing music, audio is not transfered to BT device. 2009-10-08 12:03:51 -07:00
Android.mk Fix firestone build 2009-07-29 09:47:23 -07:00
AudioBufferProvider.h Add virtual destructor. 2009-07-07 11:03:13 -07:00
AudioDumpInterface.cpp Improved unit test code for Audioflinger. 2009-08-07 09:32:06 -07:00
AudioDumpInterface.h Improved unit test code for Audioflinger. 2009-08-07 09:32:06 -07:00
AudioFlinger.cpp Issue 2265163: Audio still reported routed through earpiece on sholes 2009-11-19 23:57:45 -08:00
AudioFlinger.h Issue 2265163: Audio still reported routed through earpiece on sholes 2009-11-19 23:57:45 -08:00
AudioHardwareGeneric.cpp Fix issue 1795088 Improve audio routing code 2009-07-23 06:03:39 -07:00
AudioHardwareGeneric.h Fix issue 1795088 Improve audio routing code 2009-07-23 06:03:39 -07:00
AudioHardwareInterface.cpp Fix getParameters() default implementation. 2009-08-04 06:17:43 -07:00
AudioHardwareStub.cpp Fix getParameters() default implementation. 2009-08-04 06:17:43 -07:00
AudioHardwareStub.h Fix getParameters() default implementation. 2009-08-04 06:17:43 -07:00
AudioMixer.cpp Fix issue 1795088 Improve audio routing code 2009-07-23 06:03:39 -07:00
AudioMixer.h Fix issue 1795088 Improve audio routing code 2009-07-23 06:03:39 -07:00
AudioPolicyManagerGeneric.cpp Log for issue 2203561. 2009-11-03 09:33:35 -08:00
AudioPolicyManagerGeneric.h Log for issue 2203561. 2009-11-03 09:33:35 -08:00
AudioPolicyService.cpp More log for issue 2242381. 2009-11-07 01:18:20 -08:00
AudioPolicyService.h More log for issue 2242381. 2009-11-07 01:18:20 -08:00
AudioResampler.cpp auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
AudioResampler.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
AudioResamplerCubic.cpp auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
AudioResamplerCubic.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
AudioResamplerSinc.cpp auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
AudioResamplerSinc.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00