2 * Copyright (C) 2012 The Android Open Source Project
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef VBC_CONTROL_PARAMETERS_H
18 #define VBC_CONTROL_PARAMETERS_H
25 #define VBC_PIPE_NAME_MAX_LEN 16
26 #define VOIP_PIPE_NAME_MAX VBC_PIPE_NAME_MAX_LEN
27 #define NAME_LEN_MAX 16
29 #define AUDIO_XML_PATH SYSCONFDIR"/multimedia/audio_hw.xml" /* SYSCONFDIR is defined at .spec */
31 #define MODEM_T_ENABLE_PROPERTY "persist.modem.t.enable"
32 #define MODEM_W_ENABLE_PROPERTY "persist.modem.w.enable"
41 /*support multiple call for multiple modem(cp0/cp1/...):
42 different modem is corresponding to different pipe and all pipes use the only vbc.
43 support multiple pipe:
44 1. change VBC_PIPE_COUNT
45 2. change the definition of s_vbc_ctrl_pipe_info.
46 3. change channel_id for different cp .On sharp, 0 for cp0, 1 for cp1,2 for ap
51 char s_vbc_ctrl_pipe_name[VBC_PIPE_NAME_MAX_LEN];
54 }vbc_ctrl_pipe_para_t;
60 int8_t pipe_name[VOIP_PIPE_NAME_MAX];
77 typedef struct debuginfo
81 int pcmwritetime_gate;
82 int lastthis_outwritetime_gate;
87 vbc_ctrl_pipe_para_t *vbc_ctrl_pipe_info;
90 struct voip_res voip_res;
94 /*audio mode structure,we can expand for more fields if necessary*/
98 char mode_name[NAME_LEN_MAX];
102 /*we mostly have four mode,(headset,headfree,handset,handsfree),
103 differet product may configure different mode number,htc have 25 modes.*/
106 audio_mode_item_t *audio_mode_item_info;