summaryrefslogtreecommitdiffstats
path: root/services/audiopolicy/AudioPolicyManager.h
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2014-08-10 14:30:48 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2014-08-10 15:46:24 -0700
commitf17026dfef596cf1c8008fda20f1f2ad23a3df3a (patch)
treeb11728521202f20039b7b34e11aa66d979e871ff /services/audiopolicy/AudioPolicyManager.h
parent317bb9163befccd87348c11bdfc0044e629b362b (diff)
downloadframeworks_av-f17026dfef596cf1c8008fda20f1f2ad23a3df3a.zip
frameworks_av-f17026dfef596cf1c8008fda20f1f2ad23a3df3a.tar.gz
frameworks_av-f17026dfef596cf1c8008fda20f1f2ad23a3df3a.tar.bz2
Update audio ports with profile capabilities
When opening an output, import the profile capabilities associated with the device into the AudioPort. Bug 10549017 Change-Id: If102f5623457542d2c1407ada303c71e43d19a08
Diffstat (limited to 'services/audiopolicy/AudioPolicyManager.h')
-rw-r--r--services/audiopolicy/AudioPolicyManager.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/services/audiopolicy/AudioPolicyManager.h b/services/audiopolicy/AudioPolicyManager.h
index 95aab65..f071675 100644
--- a/services/audiopolicy/AudioPolicyManager.h
+++ b/services/audiopolicy/AudioPolicyManager.h
@@ -238,6 +238,9 @@ protected:
virtual void toAudioPort(struct audio_port *port) const;
+ void importAudioPort(const sp<AudioPort> port);
+ void clearCapabilities();
+
void loadSamplingRates(char *name);
void loadFormats(char *name);
void loadOutChannels(char *name);
@@ -628,7 +631,7 @@ protected:
// when a device is disconnected, checks if an output is not used any more and
// returns its handle if any.
// transfers the audio tracks and effects from one output thread to another accordingly.
- status_t checkOutputsForDevice(audio_devices_t device,
+ status_t checkOutputsForDevice(const sp<DeviceDescriptor> devDesc,
audio_policy_dev_state_t state,
SortedVector<audio_io_handle_t>& outputs,
const String8 address);