summaryrefslogtreecommitdiff
path: root/hal/platform_api.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2018-11-15 12:24:31 -0800
committerEric Laurent <elaurent@google.com>2018-12-14 10:33:53 -0800
commitd1b7a9b6b516e3313d65560a4b8004cfa3ae9a19 (patch)
treec87127ff35a768a9b4eac61e3d4c2b7386a6b010 /hal/platform_api.h
parentb0f5bfd12c03317d179e1cec64149f3216756af5 (diff)
downloadaudio-d1b7a9b6b516e3313d65560a4b8004cfa3ae9a19.tar.gz
audio HAL: support multiple active input streams
Implement support for more than one active input streams. New implementation is limited to one active stream per capture use case as there is one PCM ALSA device per front end and use case. Note that the number of active sound trigger sessions is limited by the soundtrigger implementation, not the number of PCM ALSA devices. We do not enforce a max number of open streams per use case as this is done by the audio_polcy_configuration file. Bug: 111438757 Test: manual audio smoke tests for capture. Change-Id: I1a372bca154d1ee034526f2b6b3ddeeae93a71f2
Diffstat (limited to 'hal/platform_api.h')
-rw-r--r--hal/platform_api.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/hal/platform_api.h b/hal/platform_api.h
index 8e249da..3cd2b8d 100644
--- a/hal/platform_api.h
+++ b/hal/platform_api.h
@@ -82,7 +82,9 @@ int platform_set_mic_mute(void *platform, bool state);
int platform_get_sample_rate(void *platform, uint32_t *rate);
int platform_set_device_mute(void *platform, bool state, char *dir);
snd_device_t platform_get_output_snd_device(void *platform, audio_devices_t devices);
-snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_device);
+snd_device_t platform_get_input_snd_device(void *platform,
+ struct stream_in *in,
+ audio_devices_t out_device);
int platform_set_hdmi_channels(void *platform, int channel_count);
int platform_edid_get_max_channels(void *platform);
void platform_add_operator_specific_device(snd_device_t snd_device,
@@ -182,4 +184,8 @@ int platform_set_usb_service_interval(void *platform,
int platform_get_usb_service_interval(void *platform,
bool playback,
unsigned long *service_interval);
+
+/* callback functions from platform to common audio HAL */
+struct stream_in *adev_get_active_input(const struct audio_device *adev);
+
#endif // AUDIO_PLATFORM_API_H