diff options
author | Eric Laurent <elaurent@google.com> | 2009-12-05 05:20:01 -0800 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2009-12-07 05:37:47 -0800 |
commit | 148b266afe2ac92b5616c24e8d5160e6f9242f69 (patch) | |
tree | 6a39d1291d8abe0fe7ca25b0ac6d58f92acf2163 /media/libmedia | |
parent | f311c557729099d002f4aae37c402a8287912369 (diff) | |
download | frameworks_av-148b266afe2ac92b5616c24e8d5160e6f9242f69.zip frameworks_av-148b266afe2ac92b5616c24e8d5160e6f9242f69.tar.gz frameworks_av-148b266afe2ac92b5616c24e8d5160e6f9242f69.tar.bz2 |
Fix issue 2304669: VoiceIME: starting and canceling voice IME yields persistent "error 8" state on future attempts and breaks voice search.
Fixed AudioFlinger::openInput() broken in change ddb78e7753be03937ad57ce7c3c842c52bdad65e
so that an invalid IO handle (0) is returned in case of failure.
Applied the same correction to openOutput().
Modified RecordThread start procedure so that a failure occuring during the first read from audio input stream is detected and causes
the record start to fail.
Modified RecordThread stop procedure to make sure that audio input stream fd is closed before we exit the stop function.
Fixed AudioRecord JAVA and JNI implementation to take status of native AudioRecord::start() into account
and not change mRecordingState to RECORDSTATE_RECORDING if start fails.
Diffstat (limited to 'media/libmedia')
-rw-r--r-- | media/libmedia/AudioRecord.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp index c3828f0..f4165ff 100644 --- a/media/libmedia/AudioRecord.cpp +++ b/media/libmedia/AudioRecord.cpp @@ -125,7 +125,7 @@ status_t AudioRecord::set( audio_io_handle_t input = AudioSystem::getInput(inputSource, sampleRate, format, channels, (AudioSystem::audio_in_acoustics)flags); if (input == 0) { - LOGE("Could not get audio output for stream type %d", inputSource); + LOGE("Could not get audio input for record source %d", inputSource); return BAD_VALUE; } @@ -539,7 +539,6 @@ ssize_t AudioRecord::read(void* buffer, size_t userSize) return BAD_VALUE; } - LOGV("read size: %d", userSize); do { |