diff options
author | Haynes Mathew George <hgeorge@codeaurora.org> | 2014-06-10 19:27:38 -0700 |
---|---|---|
committer | Vineeta Srivastava <vsrivastava@google.com> | 2014-06-17 15:46:17 -0700 |
commit | cedf1ac3c00e331b5f51b077f26c1367544ddd65 (patch) | |
tree | a0e3a01cacc3b32945be3be8a3cc7783ab1c5591 /hal/msm8974/platform.h | |
parent | cc9649b4f1e7d109ed005819971c3d9657a19711 (diff) | |
download | hardware_qcom_audio-cedf1ac3c00e331b5f51b077f26c1367544ddd65.tar.gz hardware_qcom_audio-cedf1ac3c00e331b5f51b077f26c1367544ddd65.tar.bz2 hardware_qcom_audio-cedf1ac3c00e331b5f51b077f26c1367544ddd65.zip |
hal: Add support for IMS calls
Move all the voice call specific code to a new file.
Add voice extension files to support IMS calls.
Change-Id: I1b7235500c8e3c2285b726b351d996dc3e5ebdf6
Diffstat (limited to 'hal/msm8974/platform.h')
-rw-r--r-- | hal/msm8974/platform.h | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/hal/msm8974/platform.h b/hal/msm8974/platform.h index 42bf8e5d..267f90f8 100644 --- a/hal/msm8974/platform.h +++ b/hal/msm8974/platform.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013 The Android Open Source Project + * Copyright (C) 2013-2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -91,17 +91,11 @@ enum { }; -#define MIXER_CARD 0 -#define SOUND_CARD 0 - #define DEFAULT_OUTPUT_SAMPLING_RATE 48000 -#define ALL_SESSION_VSID 0xFFFFFFFF -#define DEFAULT_MUTE_RAMP_DURATION 20 +#define ALL_SESSION_VSID 0xFFFFFFFF +#define DEFAULT_MUTE_RAMP_DURATION_MS 20 #define DEFAULT_VOLUME_RAMP_DURATION_MS 20 -#define VOLUME_SET 0 -#define MUTE_SET 1 -#define VOLUME_CTL_PARAM_NUM 3 #ifdef MSM8084 #define ACDB_ID_VOICE_HANDSET_TMUS 88 @@ -110,6 +104,12 @@ enum { #define ACDB_ID_VOICE_HANDSET_TMUS 7 #define ACDB_ID_VOICE_DMIC_EF_TMUS 41 #endif + +#define MAX_VOL_INDEX 5 +#define MIN_VOL_INDEX 0 +#define percent_to_index(val, min, max) \ + ((val) * ((max) - (min)) * 0.01 + (min) + .5) + /* * tinyAlsa library interprets period size as number of frames * one frame = channel_count * sizeof (pcm sample) @@ -143,8 +143,16 @@ enum { #define VOICE_VSID 0x10C01000 #ifdef PLATFORM_MSM8084 #define VOICE_CALL_PCM_DEVICE 20 +#define VOICE2_CALL_PCM_DEVICE 25 +#define VOLTE_CALL_PCM_DEVICE 21 +#define QCHAT_CALL_PCM_DEVICE 33 +#define VOWLAN_CALL_PCM_DEVICE -1 #else #define VOICE_CALL_PCM_DEVICE 2 +#define VOICE2_CALL_PCM_DEVICE 22 +#define VOLTE_CALL_PCM_DEVICE 14 +#define QCHAT_CALL_PCM_DEVICE 20 +#define VOWLAN_CALL_PCM_DEVICE 36 #endif #define HFP_PCM_RX 5 |