diff options
author | Ravi Kumar Alamanda <ralama@codeaurora.org> | 2015-06-08 16:44:05 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2015-06-18 17:34:34 +0000 |
commit | b7ea4f581dab56101215e97692c265931addad80 (patch) | |
tree | e77d792fead0e78eb0de86fd4b8434c513cbd479 /hal/platform_api.h | |
parent | ff864719d078ba8edb81c565a8db5e3f1ea07f15 (diff) | |
download | audio-b7ea4f581dab56101215e97692c265931addad80.tar.gz |
hal: update combo device handling
If the wired headset/headphone/line devices are handled by
a different backend than speaker/earpiece devices, the combo
devices such as speaker+headphones can be split into individual
devices and enabled/disabled independently.
Bug: 21581860.
Change-Id: Icdd962a4dc1da536fe89c4de2202e7383275603d
Diffstat (limited to 'hal/platform_api.h')
-rw-r--r-- | hal/platform_api.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/hal/platform_api.h b/hal/platform_api.h index 2ab4419..9f65a63 100644 --- a/hal/platform_api.h +++ b/hal/platform_api.h @@ -57,7 +57,8 @@ int platform_stop_incall_recording_usecase(void *platform); int platform_start_incall_music_usecase(void *platform); int platform_stop_incall_music_usecase(void *platform); -int platform_set_snd_device_backend(snd_device_t snd_device, const char * backend); +int platform_set_snd_device_backend(snd_device_t snd_device, const char * backend, + const char * hw_interface); /* From platform_info_parser.c */ int platform_info_init(void); @@ -66,4 +67,11 @@ int platform_get_usecase_index(const char * usecase); int platform_set_usecase_pcm_id(audio_usecase_t usecase, int32_t type, int32_t pcm_id); 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); + +bool platform_check_backends_match(snd_device_t snd_device1, snd_device_t snd_device2); + #endif // AUDIO_PLATFORM_API_H |