Skip to content

Commit

Permalink
Merge "policy_hal: avoid VOIP_RX flag is removed for voip call"
Browse files Browse the repository at this point in the history
  • Loading branch information
qctecmdr authored and Gerrit - the friendly Code Review server committed Oct 9, 2020
2 parents 153d450 + 4a832da commit ef352d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion policy_hal/AudioPolicyManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1701,7 +1701,8 @@ audio_io_handle_t AudioPolicyManagerCustom::getOutputForDevices(
// prevent direct pcm for non-music stream blindly if direct pcm already in use
// for other music stream concurrency is handled after checking direct ouput usage
// and checking client
if (direct_pcm_already_in_use == true && stream != AUDIO_STREAM_MUSIC) {
if (direct_pcm_already_in_use == true && stream != AUDIO_STREAM_MUSIC &&
!(*flags & AUDIO_OUTPUT_FLAG_VOIP_RX)) {
ALOGD("disabling offload for non music stream as direct pcm is already in use");
*flags = (audio_output_flags_t)(AUDIO_OUTPUT_FLAG_NONE);
}
Expand Down

0 comments on commit ef352d3

Please sign in to comment.