summaryrefslogtreecommitdiff
path: root/include/libaudio/audiohal/voice_definition.h
blob: c18947c85fccb9da40deefb57132b9aa9bde7ae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
 * Copyright (C) 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.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef __AUDIOHAL_VOICE_DEFINITION_H__
#define __AUDIOHAL_VOICE_DEFINITION_H__

/**
 ** Custermization
 ** If these are defined at other header file, please disable this if block
 **/

#define CP1 0 // DualCP CP1, DualMode Sim1
#define CP2 1 // DualCP CP2, DualMode Sim2

enum bt_nrec_status {
    BT_NREC_INITIALIZED = -1,
    BT_NREC_ON = 0,
    BT_NREC_OFF = 1
};

#define TTY_MODE_OFF             0x00000010
#define TTY_MODE_FULL            0x00000020
#define TTY_MODE_VCO             0x00000040
#define TTY_MODE_HCO             0x00000080
#define TTY_MODE_CLEAR           0xFFFFFF0F

#define AUDIO_PARAMETER_KEY_EXTRA_VOLUME                "extraVolume"
#define AUDIO_PARAMETER_KEY_CALL_FORWARDING             "call_forwarding"

#define AUDIO_PARAMETER_VOLTE_STATUS   "VoLTEstate"


#define SWB      2
#define WB       1
#define NB       0
#define SWB_SAMPLING_RATE 32000
#define WB_SAMPLING_RATE  16000
#define NB_SAMPLING_RATE  8000

#endif  // __AUDIOHAL_VOICE_DEFINITION_H__