Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4659bf20 authored by Eric Laurent's avatar Eric Laurent Committed by Android Git Automerger
Browse files

am b8341cf7: am 6d42d806: Merge change I9cc489a2 into eclair

Merge commit 'b8341cf7c8b0b4af14ea87a4c2335e28865adff1' into eclair-mr2-plus-aosp

* commit 'b8341cf7c8b0b4af14ea87a4c2335e28865adff1':
  Fix issue 2304669: VoiceIME: starting and canceling voice IME yields persistent "error 8" state on future attempts and breaks voice search.
parents 9ce05907 a410d5a7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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 {