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

Commit e3aac34f authored by Eric Laurent's avatar Eric Laurent
Browse files

Temporary workaround for issue 3187563

The audio HAL does not always handle properly simultaneous input and output stream
state changes. This happens in particular when starting video record because output
stream starts and stops while input is active.

Temporary disable the video record jingle the time the audio HAL issues are solved.

Change-Id: I3b923d81af543a335deae9e22d7f396bb5791d91
parent b50a8033
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -277,6 +277,10 @@ void CameraService::releaseSound() {

void CameraService::playSound(sound_kind kind) {
    LOG1("playSound(%d)", kind);
    // FIXME: temporarily disable sound while working on audio HAL issues preventing simultaneous
    // playback and record
    if (kind == SOUND_RECORDING) return;

    Mutex::Autolock lock(mSoundLock);
    sp<MediaPlayer> player = mSoundPlayer[kind];
    if (player != 0) {