audio: do not set deep buffer flag for incall music use case.
-Deep buffer flag is getting set for incall music use case
leading to cts failures related to incall music routing.
-do not set deep buffer flag for incall music use case.
Change-Id: I5fc7367996d7844dce796cd15f1fc782a631cc89
diff --git a/policy_hal/AudioPolicyManager.cpp b/policy_hal/AudioPolicyManager.cpp
index 9cf20c7..7a323c9 100644
--- a/policy_hal/AudioPolicyManager.cpp
+++ b/policy_hal/AudioPolicyManager.cpp
@@ -1744,7 +1744,7 @@
*flags = (audio_output_flags_t)(*flags &~AUDIO_OUTPUT_FLAG_DEEP_BUFFER);
} else if (/* stream == AUDIO_STREAM_MUSIC && */
(*flags == AUDIO_OUTPUT_FLAG_NONE || *flags == AUDIO_OUTPUT_FLAG_DIRECT) &&
- property_get_bool("audio.deep_buffer.media", false /* default_value */)) {
+ property_get_bool("audio.deep_buffer.media", false /* default_value */) && !isInCall()) {
forced_deep = true;
}