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
AudioBufferProvider.h
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
AudioHardwareGeneric.h
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
AudioMixer.h
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
AudioResampler.h
AudioResamplerCubic.cpp
AudioResamplerCubic.h
AudioResamplerSinc.cpp
AudioResamplerSinc.h