1 /* 2 * Copyright (C) 2014 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef __AUDIOHAL_VOICE_DEFINITION_H__ 18 #define __AUDIOHAL_VOICE_DEFINITION_H__ 19 20 /** 21 ** Custermization 22 ** If these are defined at other header file, please disable this if block 23 **/ 24 25 #define CP1 0 // DualCP CP1, DualMode Sim1 26 #define CP2 1 // DualCP CP2, DualMode Sim2 27 28 enum bt_nrec_status { 29 BT_NREC_INITIALIZED = -1, 30 BT_NREC_ON = 0, 31 BT_NREC_OFF = 1 32 }; 33 34 #define TTY_MODE_OFF 0x00000010 35 #define TTY_MODE_FULL 0x00000020 36 #define TTY_MODE_VCO 0x00000040 37 #define TTY_MODE_HCO 0x00000080 38 #define TTY_MODE_CLEAR 0xFFFFFF0F 39 40 #define AUDIO_PARAMETER_KEY_EXTRA_VOLUME "extraVolume" 41 #define AUDIO_PARAMETER_KEY_CALL_FORWARDING "call_forwarding" 42 43 #define AUDIO_PARAMETER_VOLTE_STATUS "VoLTEstate" 44 45 46 #define SWB 2 47 #define WB 1 48 #define NB 0 49 #define SWB_SAMPLING_RATE 32000 50 #define WB_SAMPLING_RATE 16000 51 #define NB_SAMPLING_RATE 8000 52 53 #endif // __AUDIOHAL_VOICE_DEFINITION_H__ 54