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/AudioPolicyService.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/AudioPolicyService.h')
-rw-r--r-- | services/audiopolicy/AudioPolicyService.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/services/audiopolicy/AudioPolicyService.h b/services/audiopolicy/AudioPolicyService.h index 08942ee..63fc0c3 100644 --- a/services/audiopolicy/AudioPolicyService.h +++ b/services/audiopolicy/AudioPolicyService.h @@ -361,14 +361,13 @@ private: // 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); + 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); // 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); @@ -386,10 +385,11 @@ private: // 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_io_handle_t *input, + audio_config_t *config, + audio_devices_t *devices, + const String8& address, + audio_source_t source, audio_input_flags_t flags); // closes an audio input virtual status_t closeInput(audio_io_handle_t input); |