diff options
author | Haynes Mathew George <hgeorge@codeaurora.org> | 2017-02-16 20:33:38 -0800 |
---|---|---|
committer | David Lin <dtwlin@google.com> | 2017-05-16 13:42:02 -0700 |
commit | e5ff0fc8e7126cdd2535641e9463ee8065b6149e (patch) | |
tree | 3eae4fe5309c4cd9df503dfae8babf52871fb54b /hal/platform_api.h | |
parent | 8109292ec53af39d6fb63cfdcde0c178cd747224 (diff) | |
download | audio-e5ff0fc8e7126cdd2535641e9463ee8065b6149e.tar.gz |
dynamic usb profile
- Add support for dynamic USB profile
- Add support for 24 bit end to end pcm playback
Bug: 37304195
Test: phone call, playback, capture with and without USB headset
Change-Id: Idb0b7de8e32a8c8aca335de6bbd9f160b7b44b8b
Signed-off-by: David Lin <dtwlin@google.com>
Diffstat (limited to 'hal/platform_api.h')
-rw-r--r-- | hal/platform_api.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hal/platform_api.h b/hal/platform_api.h index 59ad4b1..e3bcc1a 100644 --- a/hal/platform_api.h +++ b/hal/platform_api.h @@ -50,6 +50,8 @@ int platform_get_snd_device_index(char *snd_device_index_name); int platform_set_snd_device_acdb_id(snd_device_t snd_device, unsigned int acdb_id); int platform_get_snd_device_acdb_id(snd_device_t snd_device); int platform_send_audio_calibration(void *platform, snd_device_t snd_device); +int platform_send_audio_calibration_v2(void *platform, struct audio_usecase *usecase, + int app_type, int sample_rate); int platform_get_default_app_type_v2(void *platform, enum usecase_type_t type, int *app_type); int platform_switch_voice_call_device_pre(void *platform); int platform_switch_voice_call_enable_device_config(void *platform, @@ -125,4 +127,11 @@ bool platform_check_and_set_capture_backend_cfg(struct audio_device* adev, struct audio_usecase *usecase, snd_device_t snd_device); int platform_snd_card_update(void *platform, enum card_status_t status); +void platform_check_and_update_copp_sample_rate(void *platform, snd_device_t snd_device, + unsigned int stream_sr,int *sample_rate); +int platform_get_snd_device_backend_index(snd_device_t snd_device); +bool platform_supports_app_type_cfg(); +int platform_get_app_type_v2(void *platform, enum usecase_type_t type, + int bw, int sr, int *app_type); +void platform_add_app_type(int bw, const char *uc_type, int app_type, int max_sr); #endif // AUDIO_PLATFORM_API_H |