Audio: HAL should handle other streams (when call active)
authorstenkinevgeniy <stenkinevgeniy@gmail.com>
Tue, 8 May 2018 11:51:29 +0000 (11:51 +0000)
committerBasil Gello <vasek.gello@gmail.com>
Thu, 24 May 2018 11:56:44 +0000 (14:56 +0300)
Change-Id: I70fbd41ac386d7ea9a7fa0abb540151727461ac1

audio/audio_hw.c

index c526e722fbed913727d1269b1b4a4d9f3955e714..b0175373395d405cf44f9f0b1e552a260c46bcc7 100644 (file)
@@ -2399,11 +2399,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);
 
@@ -3207,12 +3202,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;