summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvisr <quic_visr@quicinc.com>2022-06-13 10:44:53 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2022-06-29 01:13:24 -0700
commiteb70063b3a16dabb1a9b6861645dc03ac8e82fa6 (patch)
treef588e08e0fbd8bf93ed491140aa1ba9bfc65f113
parentf8d36c666ba867001ed409e3469470c4a4619091 (diff)
HAL: Change in routing sequence of non-voice and voice streams.
Make voice stream device switch ahead of playback stream that will allow switching of Rx and Tx devices together. This will allow voice call to have matching Rx and Tx devices after device switch. Change-Id: I10367dc1dd7aaf0b2a08d049fd1c00326b1cf89e
-rw-r--r--hal/AudioDevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/hal/AudioDevice.cpp b/hal/AudioDevice.cpp
index 84a62a36..fa6b63fc 100644
--- a/hal/AudioDevice.cpp
+++ b/hal/AudioDevice.cpp
@@ -498,9 +498,9 @@ int AudioDevice::CreateAudioPatch(audio_patch_handle_t *handle,
patch->sinks = sinks;
}
- ret = stream->RouteStream(device_types);
if (voice_ && patch_type == AudioPatch::PATCH_PLAYBACK)
- ret |= voice_->RouteStream(device_types);
+ ret = voice_->RouteStream(device_types);
+ ret |= stream->RouteStream(device_types);
if (ret) {
if (new_patch)