summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqctecmdr <qctecmdr@localhost>2022-07-05 08:37:17 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2022-07-05 08:37:17 -0700
commit4679ff7a60a277ecb25c8fe84e400e2c45b6fa62 (patch)
treeec2cf1e5f096aed9bad84a569ee9b93eaf3e9f70
parent5f949ff7b9aabaa10937f22bb497031f16e47691 (diff)
parenteb70063b3a16dabb1a9b6861645dc03ac8e82fa6 (diff)
Merge "HAL: Change in routing sequence of non-voice and voice streams."
-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)