summaryrefslogtreecommitdiffstats
path: root/services/audiopolicy/common
diff options
context:
space:
mode:
authorShreyas Nagasandra Chandrasekhar <snagas@codeaurora.org>2014-10-08 15:56:46 +0530
committerSteve Kondik <shade@chemlab.org>2015-11-20 14:02:48 -0800
commitab77bc7189e49fd35e8638509df9d2c090f23817 (patch)
tree98e02b9be21b1531eaf30a33fee3576fa481098c /services/audiopolicy/common
parentd9887ccfe9c5838bffc47ee04ac0294ec9e332a8 (diff)
downloadframeworks_av-ab77bc7189e49fd35e8638509df9d2c090f23817.zip
frameworks_av-ab77bc7189e49fd35e8638509df9d2c090f23817.tar.gz
frameworks_av-ab77bc7189e49fd35e8638509df9d2c090f23817.tar.bz2
audio: Changes to enable BT A2DP
For Proxy thread to be started , a2dp state has to updated from the audiopolicy. Now , added changes to send the BT A2DP status to audio HAL. - A- Family doesn't support separate output for a2dp , removed the getA2dpOutput(). getDeviceForStrategy() is selecting the proper device using mA2dpSuspended flag. CRs-Fixed: 751090 Change-Id: I599de562a8674ee611e10575fcc85e4715707a63
Diffstat (limited to 'services/audiopolicy/common')
-rw-r--r--services/audiopolicy/common/managerdefinitions/src/AudioOutputDescriptor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/audiopolicy/common/managerdefinitions/src/AudioOutputDescriptor.cpp b/services/audiopolicy/common/managerdefinitions/src/AudioOutputDescriptor.cpp
index 5ddeaed..cefbe79 100644
--- a/services/audiopolicy/common/managerdefinitions/src/AudioOutputDescriptor.cpp
+++ b/services/audiopolicy/common/managerdefinitions/src/AudioOutputDescriptor.cpp
@@ -428,7 +428,11 @@ audio_io_handle_t SwAudioOutputCollection::getA2dpOutput() const
return this->keyAt(i);
}
}
+#ifdef LEGACY_ALSA_AUDIO
+ return 1;
+#else
return 0;
+#endif
}
sp<SwAudioOutputDescriptor> SwAudioOutputCollection::getPrimaryOutput() const