diff options
author | Glenn Kasten <gkasten@google.com> | 2014-07-24 14:08:35 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-07-24 15:38:24 -0700 |
commit | 6a8ab05f0598f4ebdd5ef82e93cf32fde0598189 (patch) | |
tree | ca84cc8dc21a7ae93fc2c50cb48d78072361a300 /services/audiopolicy/AudioPolicyManager.h | |
parent | 83b8808faad1e91690c64d7007348be8d9ebde73 (diff) | |
download | frameworks_av-6a8ab05f0598f4ebdd5ef82e93cf32fde0598189.zip frameworks_av-6a8ab05f0598f4ebdd5ef82e93cf32fde0598189.tar.gz frameworks_av-6a8ab05f0598f4ebdd5ef82e93cf32fde0598189.tar.bz2 |
audio policy: add audio_input_flags_t and mOpenRefCount
Change-Id: I5f9c7b5ebf03b9bc94efe70d3677edfabb99c194
Diffstat (limited to 'services/audiopolicy/AudioPolicyManager.h')
-rw-r--r-- | services/audiopolicy/AudioPolicyManager.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/services/audiopolicy/AudioPolicyManager.h b/services/audiopolicy/AudioPolicyManager.h index 4caecca..e9ec78e 100644 --- a/services/audiopolicy/AudioPolicyManager.h +++ b/services/audiopolicy/AudioPolicyManager.h @@ -107,7 +107,8 @@ public: uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, - audio_in_acoustics_t acoustics); + audio_in_acoustics_t acoustics, + audio_input_flags_t flags); // indicates to the audio policy manager that the input starts being used. virtual status_t startInput(audio_io_handle_t input); @@ -467,6 +468,7 @@ protected: audio_devices_t mDevice; // current device this input is routed to audio_patch_handle_t mPatchHandle; uint32_t mRefCount; // number of AudioRecord clients using this output + uint32_t mOpenRefCount; audio_source_t mInputSource; // input source selected by application (mediarecorder.h) const sp<IOProfile> mProfile; // I/O profile this output derives from @@ -674,7 +676,8 @@ protected: sp<IOProfile> getInputProfile(audio_devices_t device, uint32_t samplingRate, audio_format_t format, - audio_channel_mask_t channelMask); + audio_channel_mask_t channelMask, + audio_input_flags_t flags); sp<IOProfile> getProfileForDirectOutput(audio_devices_t device, uint32_t samplingRate, audio_format_t format, |