commit | c36a8897ff877f4c5b2e0580830faef8b87dd74a | [log] [tgz] |
---|---|---|
author | Ravi Kumar Alamanda <ralama@codeaurora.org> | Fri Apr 24 16:35:49 2015 -0700 |
committer | Jean-Michel Trivi <jmtrivi@google.com> | Mon May 11 15:06:35 2015 -0700 |
tree | 3bc502e47b787ba704de74d5cd08c77ac64e3e04 | |
parent | 804a77d1045c6c4023f73a0975a09025b2e8eef2 [diff] [blame] |
audiopolicy: Use AUDIO_OUTPUT_FLAG_TTS for TTS stream Use AUDIO_OUTPUT_FLAG_TTS by default for TTS stream to see if the HW supports a dedicated output for the same. If not, fallback to primary output as it is done currently. Change-Id: Ifb2ef7066e75c61fe4c1b9783c12627386a00ea5
diff --git a/services/audiopolicy/managerdefault/AudioPolicyManager.cpp b/services/audiopolicy/managerdefault/AudioPolicyManager.cpp index 0c02d93..d1ee400 100644 --- a/services/audiopolicy/managerdefault/AudioPolicyManager.cpp +++ b/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
@@ -768,6 +768,9 @@ if (stream != AUDIO_STREAM_MUSIC) { flags = (audio_output_flags_t)(flags &~AUDIO_OUTPUT_FLAG_DEEP_BUFFER); } + if (stream == AUDIO_STREAM_TTS) { + flags = AUDIO_OUTPUT_FLAG_TTS; + } sp<IOProfile> profile;