diff options
author | Eric Laurent <elaurent@google.com> | 2014-05-05 18:13:44 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2014-05-06 10:40:14 -0700 |
commit | d46929666d7e4b1cad45afd7dcb883ec4dd2d49f (patch) | |
tree | 7955b56d436b8856b6164cb37e16bdfbe2ad81c4 /services/audiopolicy/AudioPolicyManager.h | |
parent | 7ebe2c64dea42a3fd4de34ccb877d23b7a4e8076 (diff) | |
download | frameworks_av-d46929666d7e4b1cad45afd7dcb883ec4dd2d49f.zip frameworks_av-d46929666d7e4b1cad45afd7dcb883ec4dd2d49f.tar.gz frameworks_av-d46929666d7e4b1cad45afd7dcb883ec4dd2d49f.tar.bz2 |
audio policy: update from libhardware_legacy
Merge changes made to AudioPolicyManagerBase in libhardware_legacy
since it was forked here:
fd61179 Update policy handling for USB inputs
c7b6e3c audio: allow compiling for 64-bit
c26f454 Initial implementation of USB Audio output.
a7b1bc9 Audio policy is 32-bit only
26101ad audio policy : add AUDIO_DEVICE_IN_USB_DEVICE to sDeviceNameToEnumTable
Change-Id: I22bc883c20603a6598c6ee3ded636e9cc4d9ec03
Diffstat (limited to 'services/audiopolicy/AudioPolicyManager.h')
-rw-r--r-- | services/audiopolicy/AudioPolicyManager.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/services/audiopolicy/AudioPolicyManager.h b/services/audiopolicy/AudioPolicyManager.h index 8a631ba..f00fa8a 100644 --- a/services/audiopolicy/AudioPolicyManager.h +++ b/services/audiopolicy/AudioPolicyManager.h @@ -103,6 +103,7 @@ public: // indicates to the audio policy manager that the input stops being used. virtual status_t stopInput(audio_io_handle_t input); virtual void releaseInput(audio_io_handle_t input); + virtual void closeAllInputs(); virtual void initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax); @@ -246,6 +247,7 @@ protected: audio_output_flags_t flags) const; void dump(int fd); + void log(); // by convention, "0' in the first entry in mSamplingRates, mChannelMasks or mFormats // indicates the supported parameters should be read from the output stream @@ -329,6 +331,7 @@ protected: status_t dump(int fd); + audio_io_handle_t mId; // input handle uint32_t mSamplingRate; // audio_format_t mFormat; // input configuration audio_channel_mask_t mChannelMask; // @@ -370,6 +373,7 @@ protected: }; void addOutput(audio_io_handle_t id, AudioOutputDescriptor *outputDesc); + void addInput(audio_io_handle_t id, AudioInputDescriptor *inputDesc); // return the strategy corresponding to a given stream type static routing_strategy getStrategy(audio_stream_type_t stream); @@ -453,6 +457,11 @@ protected: SortedVector<audio_io_handle_t>& outputs, const String8 address); + status_t checkInputsForDevice(audio_devices_t device, + audio_policy_dev_state_t state, + SortedVector<audio_io_handle_t>& inputs, + const String8 address); + // close an output and its companion duplicating output. void closeOutput(audio_io_handle_t output); |