Merge "Temporary workaround for issue 3187563"

This commit is contained in:
Eric Laurent
2010-11-11 17:24:27 -08:00
committed by Android (Google) Code Review

View File

@@ -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) {