summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2011-10-17 20:23:41 -0700
committerEric Laurent <elaurent@google.com>2011-10-18 08:41:40 -0700
commit6330b5f5a7ebe105cc7fc0cca8bc631cd8b6f538 (patch)
tree7c2232833b75bca62b294c7e63e2875417aacba6 /audio
parentd98ea1b3f5c27e1226c00ab6a93c3b64aa36f5f7 (diff)
downloaddevice_samsung_tuna-6330b5f5a7ebe105cc7fc0cca8bc631cd8b6f538.zip
device_samsung_tuna-6330b5f5a7ebe105cc7fc0cca8bc631cd8b6f538.tar.gz
device_samsung_tuna-6330b5f5a7ebe105cc7fc0cca8bc631cd8b6f538.tar.bz2
audio HAL: low power playback off when capturing
Disable low power audio playback when audio capture is active even if screen is off to avoid high latency during SIP calls. Change-Id: Ib559bf2877b0cf89731e039b1bfab2bc3806f56a
Diffstat (limited to 'audio')
-rwxr-xr-xaudio/audio_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 9bb2817..322c189 100755
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -1371,7 +1371,7 @@ static ssize_t out_write(struct audio_stream_out *stream, const void* buffer,
adev->active_input->source == AUDIO_SOURCE_VOICE_COMMUNICATION)
force_input_standby = true;
}
- low_power = adev->low_power;
+ low_power = adev->low_power && !adev->active_input;
pthread_mutex_unlock(&adev->lock);
if (low_power != out->low_power) {