diff options
author | qctecmdr <qctecmdr@localhost> | 2022-07-05 08:37:17 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2022-07-05 08:37:17 -0700 |
commit | 4679ff7a60a277ecb25c8fe84e400e2c45b6fa62 (patch) | |
tree | ec2cf1e5f096aed9bad84a569ee9b93eaf3e9f70 | |
parent | 5f949ff7b9aabaa10937f22bb497031f16e47691 (diff) | |
parent | eb70063b3a16dabb1a9b6861645dc03ac8e82fa6 (diff) |
Merge "HAL: Change in routing sequence of non-voice and voice streams."
-rw-r--r-- | hal/AudioDevice.cpp | 4 |
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) |