diff options
author | Eric Laurent <elaurent@google.com> | 2010-02-04 00:54:23 -0800 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2010-03-15 18:36:58 -0700 |
commit | 68f279fa86145752e424a9cbed1a2e2ee21e10b1 (patch) | |
tree | 91f36e1ecc63aaa433618d0252783cab05ffa224 | |
parent | 62c2f857ec1cff5a5344a94356a5ead40c1ea5f9 (diff) | |
download | platform_hardware_libhardware_legacy-68f279fa86145752e424a9cbed1a2e2ee21e10b1.tar.gz platform_hardware_libhardware_legacy-68f279fa86145752e424a9cbed1a2e2ee21e10b1.tar.bz2 platform_hardware_libhardware_legacy-68f279fa86145752e424a9cbed1a2e2ee21e10b1.zip |
Fix issue 2416481: Support Voice Dialer over BT SCO.
Make the choice of opening a direct output stream platform specific.
Change-Id: I63e5464a18aaa3600e9fed6cec0518ff1fad4dbd
-rw-r--r-- | include/hardware_legacy/AudioPolicyManagerBase.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/hardware_legacy/AudioPolicyManagerBase.h b/include/hardware_legacy/AudioPolicyManagerBase.h index 58940b2..f7d8ef8 100644 --- a/include/hardware_legacy/AudioPolicyManagerBase.h +++ b/include/hardware_legacy/AudioPolicyManagerBase.h @@ -236,7 +236,15 @@ protected: // cached values are used by getDeviceForStrategy() if parameter fromCache is true. // Must be called after checkOutputForAllStrategies() void updateDeviceForStrategy(); - + // true if current platform requires a specific output to be opened for this particular + // set of parameters. This function is called by getOutput() and is implemented by platform + // specific audio policy manager. + virtual bool needsDirectOuput(AudioSystem::stream_type stream, + uint32_t samplingRate, + uint32_t format, + uint32_t channels, + AudioSystem::output_flags flags, + uint32_t device); #ifdef AUDIO_POLICY_TEST virtual bool threadLoop(); void exit(); |