diff options
author | Haynes Mathew George <hgeorge@codeaurora.org> | 2016-09-22 17:38:16 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2016-10-05 15:22:01 +0000 |
commit | 2d809e0d104497ca6b7a1e1be4efdf7856070aa5 (patch) | |
tree | 8055a94890e91303556aabeb0e76c088be6d3316 /hal/platform_api.h | |
parent | 7401c7cffeeaa3e6447fad4b44873e136bd64a68 (diff) | |
download | audio-2d809e0d104497ca6b7a1e1be4efdf7856070aa5.tar.gz |
audio: derive sound device for concurrent playback usecases
When a new playback usecase has to be started, existing playback
usecases might have to be re-routed (or not) to the new device
based on usecase requirements or h/w limitations
(e.g headphones and speaker sharing the same backend).
This change addresses this requirement by deriving the
new device based on pre-defined cases.
Bug: 31671778
Change-Id: Ic0fd4e8d2c1119e7198dc5bb5e5a51817f0110c1
Diffstat (limited to 'hal/platform_api.h')
-rw-r--r-- | hal/platform_api.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hal/platform_api.h b/hal/platform_api.h index 41e600e..fbc84c1 100644 --- a/hal/platform_api.h +++ b/hal/platform_api.h @@ -100,9 +100,9 @@ int platform_set_usecase_pcm_id(audio_usecase_t usecase, int32_t type, int32_t p void platform_set_echo_reference(struct audio_device *adev, bool enable, audio_devices_t out_device); int platform_swap_lr_channels(struct audio_device *adev, bool swap_channels); -bool platform_can_split_snd_device(snd_device_t in_snd_device, - int *num_devices, - snd_device_t *out_snd_devices); +int platform_can_split_snd_device(snd_device_t in_snd_device, + int *num_devices, + snd_device_t *out_snd_devices); bool platform_check_backends_match(snd_device_t snd_device1, snd_device_t snd_device2); |