Go to file
Eric Laurent 4f1fcc2890 Fix issue 2428563: Camera rendered inoperable by voice call interruption.
The problem is that AudioRecord never exits read() when a timeout occurs while trying
to get new PCM data from audio hardware input buffer: it just keeps waiting and retrying until stop() is called.
In the same time, opencore AndroidAudioInput::audin_thread_func() loop cannot be exited when stuck
in AudioRecord::read() because the iExitAudioThread flag can only be sampled when AudioRecord::read()
returns. We remain stuck with the audio input thread running.

The fix consists in modifying AudioRecord behavior in case of timeout when getting new PCM samples.
We now wait only one timeout period and try to restart audio record, in case the problem is due to a media_server
process crash. If this fails, we exit read() with a number of bytes read equals to 0 so that
AndroidAudioInput::audin_thread_func() loop can exit.

Also modified Audioflinger::RecordThread() loop so that we attempt to recover from HAL read errors.
In case of read error, the input stream is forced to standby so that next read attempt does a
reconfiguration and restart of the audio input device.
2010-03-05 11:54:23 -08:00
awt Fix the broken compile of a currently-not-being-compiled AWT class. 2010-01-28 12:31:01 -08:00
camera Fix the rgb to yuv422sp conversion. The order of uv is different from the 2010-02-18 14:02:56 -08:00
cmds Fix simulator build. 2010-02-11 14:41:20 -08:00
common Fix Proguard flags. 2010-03-02 09:36:33 -08:00
include Fix issue #2448075: aapt doesn't fix up activity-alias android:targetActivity links 2010-03-01 20:42:14 -08:00
libs Fix issue 2428563: Camera rendered inoperable by voice call interruption. 2010-03-05 11:54:23 -08:00
mms-common define the "seen" column for sms and pdu tables. 2010-03-01 10:26:31 -08:00
opengl get rid off the YUV formats at the libui layer 2010-02-16 17:33:37 -08:00
vpn Phase 2 of test cleanup: moving test files from AndroidTests closer to their sources. 2010-01-29 13:35:51 -08:00
cleanspec.mk
MODULE_LICENSE_APACHE2
NOTICE