diff options
author | jiabin <jiabin@google.com> | 2018-03-19 18:21:24 -0700 |
---|---|---|
committer | jiabin <jiabin@google.com> | 2018-03-28 08:34:39 -0700 |
commit | 8962a4d48ea9a0a674a1f5f3e4191743fe12e529 (patch) | |
tree | 15f8aa87a1d63c0df24834d21afe8681df619d01 /hal/platform_api.h | |
parent | 1e430887c0d166148449e8f406b3476ee9c21f5f (diff) | |
download | audio-8962a4d48ea9a0a674a1f5f3e4191743fe12e529.tar.gz |
Support query microphones information.
Add query list of all/currently active microphones in hal layer.
Bug: 64038649
Bug: 75041465
Test: Manual Testing and Cts test
Change-Id: Id82300e83d2314f1102f2e5b5481df26d76002c8
Diffstat (limited to 'hal/platform_api.h')
-rw-r--r-- | hal/platform_api.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hal/platform_api.h b/hal/platform_api.h index be1c653..e2120b7 100644 --- a/hal/platform_api.h +++ b/hal/platform_api.h @@ -152,4 +152,14 @@ int platform_get_mmap_data_fd(void *platform, int dev, int dir, int *fd, uint32_t *size); bool platform_sound_trigger_usecase_needs_event(audio_usecase_t uc_id); bool platform_snd_device_has_speaker(snd_device_t dev); + +bool platform_set_microphone_characteristic(void *platform, + struct audio_microphone_characteristic_t mic); +int platform_get_microphones(void *platform, + struct audio_microphone_characteristic_t *mic_array, + size_t *mic_count); +int platform_get_active_microphones(void *platform, audio_devices_t device, + unsigned int channels, int source, audio_usecase_t usecase, + struct audio_microphone_characteristic_t *mic_array, + size_t *mic_count); #endif // AUDIO_PLATFORM_API_H |