diff options
author | Arne Coucheron <arco68@gmail.com> | 2016-06-13 00:08:34 +0200 |
---|---|---|
committer | Ethan Chen <intervigil@gmail.com> | 2016-06-22 09:33:32 -0700 |
commit | 5a076317564bb91bb22dae1b1d6b5e9d13fef4a1 (patch) | |
tree | 93c47a181f7406db5f2c431fbbcfd497bd8241d6 /hal/msm8960/platform.h | |
parent | 36aec39a52e9bbf9100e909e2b8f5583d5adac3f (diff) | |
download | android_hardware_qcom_audio-5a076317564bb91bb22dae1b1d6b5e9d13fef4a1.tar.gz android_hardware_qcom_audio-5a076317564bb91bb22dae1b1d6b5e9d13fef4a1.tar.bz2 android_hardware_qcom_audio-5a076317564bb91bb22dae1b1d6b5e9d13fef4a1.zip |
hal: Support old CSD API and add support for Samsung CSD client
* Make the new API opt-in, as most A family devices uses the old one.
* Also add support for Samsung's non-standard function names.
Change-Id: Id8fccb123af1b2d08bcf4433fd165050286d95a1
Diffstat (limited to 'hal/msm8960/platform.h')
-rw-r--r-- | hal/msm8960/platform.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/hal/msm8960/platform.h b/hal/msm8960/platform.h index 2102be11..d4d7aa74 100644 --- a/hal/msm8960/platform.h +++ b/hal/msm8960/platform.h @@ -256,6 +256,7 @@ typedef int (*init_t)(); typedef int (*deinit_t)(); typedef int (*disable_device_t)(); typedef int (*enable_device_t)(int, int, uint32_t); +#ifdef NEW_CSDCLIENT typedef int (*volume_t)(uint32_t, int); typedef int (*mic_mute_t)(uint32_t, int); typedef int (*slow_talk_t)(uint32_t, uint8_t); @@ -265,6 +266,18 @@ typedef int (*start_playback_t)(uint32_t); typedef int (*stop_playback_t)(uint32_t); typedef int (*start_record_t)(uint32_t, int); typedef int (*stop_record_t)(uint32_t); +#else +typedef int (*volume_t)(int); +typedef int (*mic_mute_t)(int); +typedef int (*slow_talk_t)(uint8_t); +typedef int (*start_voice_t)(); +typedef int (*stop_voice_t)(); +typedef int (*start_playback_t)(); +typedef int (*stop_playback_t)(); +typedef int (*start_record_t)(int); +typedef int (*stop_record_t)(); +#endif + /* CSD Client structure */ struct csd_data { void *csd_client; |