summaryrefslogtreecommitdiffstats
path: root/services/audiopolicy
diff options
context:
space:
mode:
authorLeo Wang <leozwang@google.com>2015-01-15 06:17:27 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-01-15 06:17:27 +0000
commitc9123e9aec7d84b51e5e3863953bcbd05e754513 (patch)
tree7ecc13d22ccf83e91721ac0c79306f13677c7cb9 /services/audiopolicy
parenteb2a7346c2270a7fb3cc3e127f7b52ba20df1fb7 (diff)
parenteed5e4bd2b25da3e1965f4ab360f3cea1ccbcc2c (diff)
downloadframeworks_av-c9123e9aec7d84b51e5e3863953bcbd05e754513.zip
frameworks_av-c9123e9aec7d84b51e5e3863953bcbd05e754513.tar.gz
frameworks_av-c9123e9aec7d84b51e5e3863953bcbd05e754513.tar.bz2
am eed5e4bd: am 5b578bec: Merge " [FM]There is no sound output from BT earphone while BT earphone is connected" into lmp-mr1-dev
* commit 'eed5e4bd2b25da3e1965f4ab360f3cea1ccbcc2c': [FM]There is no sound output from BT earphone while BT earphone is connected
Diffstat (limited to 'services/audiopolicy')
-rw-r--r--services/audiopolicy/AudioPolicyManager.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/services/audiopolicy/AudioPolicyManager.h b/services/audiopolicy/AudioPolicyManager.h
index 633888f..0fa182b 100644
--- a/services/audiopolicy/AudioPolicyManager.h
+++ b/services/audiopolicy/AudioPolicyManager.h
@@ -594,7 +594,7 @@ protected:
// change the route of the specified output. Returns the number of ms we have slept to
// allow new routing to take effect in certain cases.
- uint32_t setOutputDevice(audio_io_handle_t output,
+ virtual uint32_t setOutputDevice(audio_io_handle_t output,
audio_devices_t device,
bool force = false,
int delayMs = 0,
@@ -877,11 +877,13 @@ protected:
#endif //AUDIO_POLICY_TEST
static float volIndexToAmpl(audio_devices_t device, const StreamDescriptor& streamDesc,
int indexInUi);
+ static bool isVirtualInputDevice(audio_devices_t device);
+ uint32_t nextUniqueId();
+ uint32_t nextAudioPortGeneration();
private:
// updates device caching and output for streams that can influence the
// routing of notifications
void handleNotificationRoutingForStream(audio_stream_type_t stream);
- static bool isVirtualInputDevice(audio_devices_t device);
static bool deviceDistinguishesOnAddress(audio_devices_t device);
// find the outputs on a given output descriptor that have the given address.
// to be called on an AudioOutputDescriptor whose supported devices (as defined
@@ -892,8 +894,6 @@ private:
const audio_devices_t device /*in*/,
const String8 address /*in*/,
SortedVector<audio_io_handle_t>& outputs /*out*/);
- uint32_t nextUniqueId();
- uint32_t nextAudioPortGeneration();
uint32_t curAudioPortGeneration() const { return mAudioPortGeneration; }
// internal method to return the output handle for the given device and format
audio_io_handle_t getOutputForDevice(