OSDN Git Service

Fix issue 2416481: Support Voice Dialer over BT SCO.
authorEric Laurent <elaurent@google.com>
Thu, 4 Feb 2010 08:54:23 +0000 (00:54 -0800)
committerEric Laurent <elaurent@google.com>
Tue, 16 Mar 2010 01:36:58 +0000 (18:36 -0700)
Make the choice of opening a direct output stream platform specific.

Change-Id: I63e5464a18aaa3600e9fed6cec0518ff1fad4dbd

include/hardware_legacy/AudioPolicyManagerBase.h

index 58940b2..f7d8ef8 100644 (file)
@@ -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();