summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstenkinevgeniy <stenkinevgeniy@gmail.com>2018-05-08 11:51:29 +0000
committerJan Altensen <info@stricted.net>2019-02-05 20:11:27 +0100
commit8b57320848d9d8697ffdab8820340977c195baf3 (patch)
tree38c879720bee77287cfdd28c2b47de19c3517906
parentd0a02c0982359dc9d9d141d5db945c559a2bb927 (diff)
downloadandroid_hardware_samsung-8b57320848d9d8697ffdab8820340977c195baf3.tar.gz
android_hardware_samsung-8b57320848d9d8697ffdab8820340977c195baf3.tar.bz2
android_hardware_samsung-8b57320848d9d8697ffdab8820340977c195baf3.zip
Audio: HAL should handle other streams (when call active)
Change-Id: I70fbd41ac386d7ea9a7fa0abb540151727461ac1
-rw-r--r--audio/audio_hw.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 4d0b670..9be5f33 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -2268,11 +2268,6 @@ static int out_open_pcm_devices(struct stream_out *out)
if (out->flags & AUDIO_OUTPUT_FLAG_DEEP_BUFFER)
pcm_device_id = pcm_device_deep_buffer.id;
- if (out->dev->voice.in_call) {
- ALOGV("%s: in_call, not opening PCMs", __func__);
- return ret;
- }
-
ALOGV("%s: Opening PCM device card_id(%d) device_id(%d)",
__func__, pcm_device_card, pcm_device_id);
@@ -3076,12 +3071,6 @@ static int out_get_presentation_position(const struct audio_stream_out *stream,
if (out->usecase == USECASE_AUDIO_PLAYBACK_OFFLOAD) {
ret = out_get_presentation_offload_position(out, frames, timestamp);
} else {
- if (out->dev->voice.in_call) {
- ALOGVV("%s: in_call, do not handle PCMs", __func__);
- ret = 0;
- goto done;
- }
-
/* FIXME: which device to read from? */
if (!list_empty(&out->pcm_dev_list)) {
struct pcm_device *pcm_device;