diff options
author | Eric Laurent <elaurent@google.com> | 2014-07-25 16:20:43 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2014-07-28 12:06:00 -0700 |
commit | cf2c0210c8afbe7d0661ccbbae3835b5ce73c0bf (patch) | |
tree | 26824707249d553efaabe2003381b4e9159e199d /services/audiopolicy/AudioPolicyInterface.h | |
parent | 97117153a0d681be70bfa9dc9876541375355c47 (diff) | |
download | frameworks_av-cf2c0210c8afbe7d0661ccbbae3835b5ce73c0bf.zip frameworks_av-cf2c0210c8afbe7d0661ccbbae3835b5ce73c0bf.tar.gz frameworks_av-cf2c0210c8afbe7d0661ccbbae3835b5ce73c0bf.tar.bz2 |
AudioFlinger: update openInput() and openOutput()
Add parameters to openInput() and openOutput(): device address,
input source.
Allow caller to specify a given I/O handle
Group parameters in a struct audio_config.
Bug: 12378680.
Change-Id: I7e9af74c0d996561cc13cbee7d9012d2daf33025
Diffstat (limited to 'services/audiopolicy/AudioPolicyInterface.h')
-rw-r--r-- | services/audiopolicy/AudioPolicyInterface.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/services/audiopolicy/AudioPolicyInterface.h b/services/audiopolicy/AudioPolicyInterface.h index d45776b..0e53afc 100644 --- a/services/audiopolicy/AudioPolicyInterface.h +++ b/services/audiopolicy/AudioPolicyInterface.h @@ -211,14 +211,13 @@ public: // in case the audio policy manager has no specific requirements for the output being opened. // When the function returns, the parameter values reflect the actual values used by the audio hardware output stream. // The audio policy manager can check if the proposed parameters are suitable or not and act accordingly. - virtual audio_io_handle_t openOutput(audio_module_handle_t module, - audio_devices_t *pDevices, - uint32_t *pSamplingRate, - audio_format_t *pFormat, - audio_channel_mask_t *pChannelMask, - uint32_t *pLatencyMs, - audio_output_flags_t flags, - const audio_offload_info_t *offloadInfo = NULL) = 0; + virtual status_t openOutput(audio_module_handle_t module, + audio_io_handle_t *output, + audio_config_t *config, + audio_devices_t *devices, + const String8& address, + uint32_t *latencyMs, + audio_output_flags_t flags) = 0; // creates a special output that is duplicated to the two outputs passed as arguments. The duplication is performed by // a special mixer thread in the AudioFlinger. virtual audio_io_handle_t openDuplicateOutput(audio_io_handle_t output1, audio_io_handle_t output2) = 0; @@ -235,12 +234,13 @@ public: // // opens an audio input - virtual audio_io_handle_t openInput(audio_module_handle_t module, - audio_devices_t *pDevices, - uint32_t *pSamplingRate, - audio_format_t *pFormat, - audio_channel_mask_t *pChannelMask, - audio_input_flags_t flags) = 0; + virtual status_t openInput(audio_module_handle_t module, + audio_io_handle_t *input, + audio_config_t *config, + audio_devices_t *device, + const String8& address, + audio_source_t source, + audio_input_flags_t flags) = 0; // closes an audio input virtual status_t closeInput(audio_io_handle_t input) = 0; // |