1 /******************************************************************************
2  *
3  *  Copyright (C) 2003-2012 Broadcom Corporation
4  *
5  *  Licensed under the Apache License, Version 2.0 (the "License");
6  *  you may not use this file except in compliance with the License.
7  *  You may obtain a copy of the License at:
8  *
9  *  http://www.apache.org/licenses/LICENSE-2.0
10  *
11  *  Unless required by applicable law or agreed to in writing, software
12  *  distributed under the License is distributed on an "AS IS" BASIS,
13  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *  See the License for the specific language governing permissions and
15  *  limitations under the License.
16  *
17  ******************************************************************************/
18 
19 /******************************************************************************
20  *
21  *  This is the private interface file for the BTA audio gateway.
22  *
23  ******************************************************************************/
24 #ifndef BTA_AG_INT_H
25 #define BTA_AG_INT_H
26 
27 #include "bta_ag_at.h"
28 #include "bta/bta_sys.h"
29 #include "bta/bta_api.h"
30 #include "bta/bta_ag_api.h"
31 #include "stack/sdp_api.h"
32 
33 #if (BTA_AG_INCLUDED == TRUE)
34 
35 /* Send RING & CLIP in one AT cmd */
36 #ifndef BTA_AG_MULTI_RESULT_INCLUDED
37 #define BTA_AG_MULTI_RESULT_INCLUDED      FALSE
38 #endif
39 
40 /* Replace : in VGS and VGM for HSP */
41 #ifndef BTA_HSP_RESULT_REPLACE_COLON
42 #define BTA_HSP_RESULT_REPLACE_COLON      TRUE
43 #endif
44 
45 /*****************************************************************************
46 **  Constants
47 *****************************************************************************/
48 #define HFP_VERSION_1_1         0x0101
49 #define HFP_VERSION_1_5         0x0105
50 #define HFP_VERSION_1_6         0x0106
51 #define HFP_VERSION_1_7         0x0107
52 #define HFP_VERSION_1_8         0x0108
53 
54 #define HSP_VERSION_1_0         0x0100
55 #define HSP_VERSION_1_2         0x0102
56 
57 /* Number of SCBs (AG service instances that can be registered) */
58 #ifndef BTA_AG_NUM_SCB
59 #define BTA_AG_NUM_SCB          1
60 #endif
61 
62 /* Timer to wait for retry in case of collision */
63 #ifndef BTA_AG_COLLISION_TIMER
64 #define BTA_AG_COLLISION_TIMER  2000
65 #endif
66 
67 /* RFCOMM MTU SIZE */
68 #define BTA_AG_MTU              256
69 
70 /* Internal profile indexes */
71 #define BTA_AG_HSP              0       /* index for HSP */
72 #define BTA_AG_HFP              1       /* index for HFP */
73 #define BTA_AG_NUM_IDX          2       /* number of profile indexes */
74 
75 /* profile role for connection */
76 #define BTA_AG_ACP              0       /* accepted connection */
77 #define BTA_AG_INT              1       /* initiating connection */
78 
79 /* feature mask that matches spec */
80 #define BTA_AG_BSRF_FEAT_SPEC        (BTA_AG_FEAT_3WAY   | BTA_AG_FEAT_ECNR    | \
81                                       BTA_AG_FEAT_VREC   | BTA_AG_FEAT_INBAND  | \
82                                       BTA_AG_FEAT_VTAG   | BTA_AG_FEAT_REJECT  | \
83                                       BTA_AG_FEAT_ECS    | BTA_AG_FEAT_ECC     | \
84                                       BTA_AG_FEAT_EXTERR | BTA_AG_FEAT_CODEC   | \
85                                       BTA_AG_FEAT_ESCO_S4| BTA_AG_FEAT_VOIP)
86 
87 #define BTA_AG_SDP_FEAT_SPEC         (BTA_AG_FEAT_3WAY | BTA_AG_FEAT_ECNR    | \
88                                       BTA_AG_FEAT_VREC | BTA_AG_FEAT_INBAND  | \
89                                       BTA_AG_FEAT_VTAG)
90 
91 enum
92 {
93     /* these events are handled by the state machine */
94     BTA_AG_API_REGISTER_EVT = BTA_SYS_EVT_START(BTA_ID_AG),
95     BTA_AG_API_DEREGISTER_EVT,
96     BTA_AG_API_OPEN_EVT,
97     BTA_AG_API_CLOSE_EVT,
98     BTA_AG_API_AUDIO_OPEN_EVT,
99     BTA_AG_API_AUDIO_CLOSE_EVT,
100     BTA_AG_API_RESULT_EVT,
101     BTA_AG_API_SETCODEC_EVT,
102     BTA_AG_RFC_OPEN_EVT,
103     BTA_AG_RFC_CLOSE_EVT,
104     BTA_AG_RFC_SRV_CLOSE_EVT,
105     BTA_AG_RFC_DATA_EVT,
106     BTA_AG_SCO_OPEN_EVT,
107     BTA_AG_SCO_CLOSE_EVT,
108     BTA_AG_DISC_ACP_RES_EVT,
109     BTA_AG_DISC_INT_RES_EVT,
110     BTA_AG_DISC_OK_EVT,
111     BTA_AG_DISC_FAIL_EVT,
112     BTA_AG_CI_RX_WRITE_EVT,
113     BTA_AG_RING_TOUT_EVT,
114     BTA_AG_SVC_TOUT_EVT,
115     BTA_AG_CI_SCO_DATA_EVT,
116     BTA_AG_CI_SLC_READY_EVT,
117     BTA_AG_MAX_EVT,
118 
119     /* these events are handled outside of the state machine */
120     BTA_AG_API_ENABLE_EVT,
121     BTA_AG_API_DISABLE_EVT
122 };
123 
124 /* Actions to perform after a SCO event */
125 enum
126 {
127     BTA_AG_POST_SCO_NONE,       /* no action */
128     BTA_AG_POST_SCO_CLOSE_RFC,  /* close RFCOMM channel after SCO closes */
129     BTA_AG_POST_SCO_RING,       /* send RING result code after SCO opens */
130     BTA_AG_POST_SCO_CALL_CONN,  /* send call indicators after SCO opens/closes */
131     BTA_AG_POST_SCO_CALL_ORIG,  /* send call indicators after SCO closes */
132     BTA_AG_POST_SCO_CALL_END,   /* send call indicators after SCO closes */
133     BTA_AG_POST_SCO_CALL_END_INCALL   /* send call indicators for end call & incoming call after SCO closes */
134 };
135 
136 /* sco states */
137 enum
138 {
139     BTA_AG_SCO_SHUTDOWN_ST,     /* no sco listening, all sco connections closed */
140     BTA_AG_SCO_LISTEN_ST,       /* sco listening */
141 #if (BTM_WBS_INCLUDED == TRUE)
142     BTA_AG_SCO_CODEC_ST,        /* sco codec negotiation */
143 #endif
144     BTA_AG_SCO_OPENING_ST,      /* sco connection opening */
145     BTA_AG_SCO_OPEN_CL_ST,      /* opening sco connection being closed */
146     BTA_AG_SCO_OPEN_XFER_ST,    /* opening sco connection being transferred */
147     BTA_AG_SCO_OPEN_ST,         /* sco open */
148     BTA_AG_SCO_CLOSING_ST,      /* sco closing */
149     BTA_AG_SCO_CLOSE_OP_ST,     /* closing sco being opened */
150     BTA_AG_SCO_CLOSE_XFER_ST,   /* closing sco being transferred */
151     BTA_AG_SCO_SHUTTING_ST      /* sco shutting down */
152 };
153 
154 /*****************************************************************************
155 **  Data types
156 *****************************************************************************/
157 
158 /* data type for BTA_AG_API_ENABLE_EVT */
159 typedef struct
160 {
161     BT_HDR              hdr;
162     tBTA_AG_PARSE_MODE  parse_mode;
163     tBTA_AG_CBACK      *p_cback;
164 } tBTA_AG_API_ENABLE;
165 
166 /* data type for BTA_AG_API_REGISTER_EVT */
167 typedef struct
168 {
169     BT_HDR              hdr;
170     char                p_name[2][BTA_SERVICE_NAME_LEN+1];
171     tBTA_SERVICE_MASK   services;
172     tBTA_SEC            sec_mask;
173     tBTA_AG_FEAT        features;
174     UINT8               app_id;
175 } tBTA_AG_API_REGISTER;
176 
177 /* data type for BTA_AG_API_OPEN_EVT */
178 typedef struct
179 {
180     BT_HDR              hdr;
181     BD_ADDR             bd_addr;
182     tBTA_SERVICE_MASK   services;
183     tBTA_SEC            sec_mask;
184 } tBTA_AG_API_OPEN;
185 
186 /* data type for BTA_AG_API_RESULT_EVT */
187 typedef struct
188 {
189     BT_HDR            hdr;
190     tBTA_AG_RES       result;
191     tBTA_AG_RES_DATA  data;
192 } tBTA_AG_API_RESULT;
193 
194 /* data type for BTA_AG_API_SETCODEC_EVT */
195 typedef struct
196 {
197     BT_HDR              hdr;
198     tBTA_AG_PEER_CODEC  codec;
199 } tBTA_AG_API_SETCODEC;
200 
201 /* data type for BTA_AG_DISC_RESULT_EVT */
202 typedef struct
203 {
204     BT_HDR          hdr;
205     UINT16          status;
206 } tBTA_AG_DISC_RESULT;
207 
208 /* data type for RFCOMM events */
209 typedef struct
210 {
211     BT_HDR          hdr;
212     UINT16          port_handle;
213 } tBTA_AG_RFC;
214 
215 /* data type for BTA_AG_CI_RX_WRITE_EVT */
216 typedef struct
217 {
218     BT_HDR          hdr;
219     char            p_data[BTA_AG_MTU+1];
220 } tBTA_AG_CI_RX_WRITE;
221 
222 /* union of all event datatypes */
223 typedef union
224 {
225     BT_HDR                  hdr;
226     tBTA_AG_API_ENABLE      api_enable;
227     tBTA_AG_API_REGISTER    api_register;
228     tBTA_AG_API_OPEN        api_open;
229     tBTA_AG_API_RESULT      api_result;
230 #if (BTM_WBS_INCLUDED == TRUE)
231     tBTA_AG_API_SETCODEC    api_setcodec;
232 #endif
233     tBTA_AG_DISC_RESULT     disc_result;
234     tBTA_AG_RFC             rfc;
235     tBTA_AG_CI_RX_WRITE     ci_rx_write;
236 } tBTA_AG_DATA;
237 
238 /* type for each profile */
239 typedef struct
240 {
241     UINT32          sdp_handle;
242     UINT8           scn;
243 } tBTA_AG_PROFILE;
244 
245 #if (BTM_WBS_INCLUDED == TRUE)
246 typedef enum
247 {
248     BTA_AG_SCO_MSBC_SETTINGS_T2 = 0, /* preferred/default when codec is mSBC */
249     BTA_AG_SCO_MSBC_SETTINGS_T1,
250 } tBTA_AG_SCO_MSBC_SETTINGS;
251 #endif
252 
253 /* type for each service control block */
254 typedef struct
255 {
256     char                clip[BTA_AG_AT_MAX_LEN+10]; /* number string used for CLIP */
257     UINT16              serv_handle[BTA_AG_NUM_IDX]; /* RFCOMM server handles */
258     tBTA_AG_AT_CB       at_cb;          /* AT command interpreter */
259     TIMER_LIST_ENT      act_timer;     /* ring timer */
260     BD_ADDR             peer_addr;      /* peer bd address */
261     tSDP_DISCOVERY_DB   *p_disc_db;     /* pointer to discovery database */
262     tBTA_SERVICE_MASK   reg_services;   /* services specified in register API */
263     tBTA_SERVICE_MASK   open_services;  /* services specified in open API */
264     UINT16              conn_handle;    /* RFCOMM handle of connected service */
265     tBTA_SEC            serv_sec_mask;  /* server security mask */
266     tBTA_SEC            cli_sec_mask;   /* client security mask */
267     tBTA_AG_FEAT        features;       /* features registered by application */
268     tBTA_AG_PEER_FEAT   peer_features;  /* peer device features */
269     UINT16              peer_version;   /* profile version of peer device */
270     UINT16              hsp_version;    /* HSP profile version */
271 #if (BTM_WBS_INCLUDED == TRUE)
272     tBTA_AG_PEER_CODEC  peer_codecs;    /* codecs for eSCO supported by the peer */
273     tBTA_AG_PEER_CODEC  sco_codec;      /* codec to be used for eSCO connection */
274     tBTA_AG_PEER_CODEC  inuse_codec;    /* codec being used for the current SCO connection */
275     BOOLEAN             codec_updated;  /* set to TRUE whenever the app updates codec type */
276     BOOLEAN             codec_fallback; /* If sco nego fails for mSBC, fallback to CVSD */
277     tBTA_AG_SCO_MSBC_SETTINGS codec_msbc_settings; /* settings to be used for the impending eSCO */
278     TIMER_LIST_ENT      cn_timer;       /* codec negotiation timer */
279 #endif
280     UINT16              sco_idx;        /* SCO handle */
281     BOOLEAN             in_use;         /* scb in use */
282     BOOLEAN             dealloc;        /* TRUE if service shutting down */
283     BOOLEAN             clip_enabled;   /* set to TRUE if HF enables CLIP reporting */
284     BOOLEAN             ccwa_enabled;   /* set to TRUE if HF enables CCWA reporting */
285     BOOLEAN             cmer_enabled;   /* set to TRUE if HF enables CMER reporting */
286     BOOLEAN             cmee_enabled;   /* set to TRUE if HF enables CME ERROR reporting */
287     BOOLEAN             inband_enabled; /* set to TRUE if inband ring enabled */
288     BOOLEAN             svc_conn;       /* set to TRUE when service level connection up */
289     TIMER_LIST_ENT      colli_timer;    /* Collision timer */
290     BOOLEAN             colli_tmr_on;   /* TRUE if collision timer is active */
291     UINT8               state;          /* state machine state */
292     UINT8               conn_service;   /* connected service */
293     UINT8               peer_scn;       /* peer scn */
294     UINT8               app_id;         /* application id */
295     UINT8               role;           /* initiator/acceptor role */
296     tBTM_SCO_CODEC_TYPE negotiated_codec; /* negotiated codec */
297     UINT8               post_sco;       /* action to perform after sco event */
298     UINT8               call_ind;       /* CIEV call indicator value */
299     UINT8               callsetup_ind;  /* CIEV callsetup indicator value */
300     UINT8               service_ind;    /* CIEV service indicator value */
301     UINT8               signal_ind;     /* CIEV signal indicator value */
302     UINT8               roam_ind;       /* CIEV roam indicator value */
303     UINT8               battchg_ind;    /* CIEV battery charge indicator value */
304     UINT8               callheld_ind;   /* CIEV call held indicator value */
305     BOOLEAN             retry_with_sco_only; /* indicator to try with SCO only when eSCO fails */
306     UINT32              bia_masked_out; /* indicators HF does not want us to send */
307     /* add */
308     UINT16              in_pkt_len;
309     UINT16              out_pkt_len;
310     UINT8               link_type;      /* BTM_LINK_TYPE_SCO or BTM_LINK_TYPE_ESCO */
311     UINT8               tx_interval;
312     UINT8               retrans_window;
313     UINT8               air_mode;
314 } tBTA_AG_SCB;
315 
316 /* type for sco data */
317 typedef struct
318 {
319     tBTM_ESCO_CONN_REQ_EVT_DATA  conn_data;     /* CO data for pending conn requestS */
320     tBTA_AG_SCB                 *p_curr_scb;    /* SCB associated with SCO connection */
321     tBTA_AG_SCB                 *p_xfer_scb;    /* SCB associated with SCO transfer */
322     UINT16                      cur_idx;        /* SCO handle */
323     UINT8                       state;          /* SCO state variable */
324     BOOLEAN                     param_updated;  /* if params were updated to non-default */
325     tBTM_ESCO_PARAMS            params;         /* ESCO parameters */
326     tBTA_AG_DATA                *p_data;
327 } tBTA_AG_SCO_CB;
328 
329 /* type for AG control block */
330 typedef struct
331 {
332     tBTA_AG_SCB         scb[BTA_AG_NUM_SCB];        /* service control blocks */
333     tBTA_AG_PROFILE     profile[BTA_AG_NUM_IDX];    /* profile-specific data */
334     tBTA_AG_SCO_CB      sco;                        /* SCO data */
335     tBTA_AG_CBACK       *p_cback;                   /* application callback */
336     tBTA_AG_PARSE_MODE  parse_mode;                 /* parse/pass-through mode */
337     BOOLEAN             msbc_enabled;
338 } tBTA_AG_CB;
339 
340 /*****************************************************************************
341 **  Global data
342 *****************************************************************************/
343 
344 /* constant lookup tables */
345 extern const UINT16 bta_ag_uuid[BTA_AG_NUM_IDX];
346 extern const UINT8 bta_ag_sec_id[BTA_AG_NUM_IDX];
347 extern const tBTA_AG_AT_CMD *bta_ag_at_tbl[BTA_AG_NUM_IDX];
348 
349 /* control block declaration */
350 #if BTA_DYNAMIC_MEMORY == FALSE
351 extern tBTA_AG_CB bta_ag_cb;
352 #else
353 extern tBTA_AG_CB *bta_ag_cb_ptr;
354 #define bta_ag_cb (*bta_ag_cb_ptr)
355 #endif
356 
357 /* config struct */
358 extern tBTA_AG_CFG *p_bta_ag_cfg;
359 
360 /*****************************************************************************
361 **  Function prototypes
362 *****************************************************************************/
363 
364 /* main functions */
365 extern void bta_ag_scb_dealloc(tBTA_AG_SCB *p_scb);
366 extern UINT16 bta_ag_scb_to_idx(tBTA_AG_SCB *p_scb);
367 extern tBTA_AG_SCB *bta_ag_scb_by_idx(UINT16 idx);
368 extern UINT8 bta_ag_service_to_idx(tBTA_SERVICE_MASK services);
369 extern UINT16 bta_ag_idx_by_bdaddr(BD_ADDR peer_addr);
370 extern BOOLEAN bta_ag_other_scb_open(tBTA_AG_SCB *p_curr_scb);
371 extern BOOLEAN bta_ag_scb_open(tBTA_AG_SCB *p_curr_scb);
372 extern tBTA_AG_SCB *bta_ag_get_other_idle_scb (tBTA_AG_SCB *p_curr_scb);
373 extern void bta_ag_sm_execute(tBTA_AG_SCB *p_scb, UINT16 event, tBTA_AG_DATA *p_data);
374 extern BOOLEAN bta_ag_hdl_event(BT_HDR *p_msg);
375 extern void bta_ag_collision_cback(tBTA_SYS_CONN_STATUS status, UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
376 extern void bta_ag_resume_open(tBTA_AG_SCB *p_scb);
377 
378 /* SDP functions */
379 extern BOOLEAN bta_ag_add_record(UINT16 service_uuid, char *p_service_name, UINT8 scn, tBTA_AG_FEAT features, UINT32 sdp_handle);
380 extern void bta_ag_create_records(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
381 extern void bta_ag_del_records(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
382 extern BOOLEAN bta_ag_sdp_find_attr(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK service);
383 extern void bta_ag_do_disc(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK service);
384 extern void bta_ag_free_db(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
385 
386 /* RFCOMM functions */
387 extern void bta_ag_start_servers(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK services);
388 extern void bta_ag_close_servers(tBTA_AG_SCB *p_scb, tBTA_SERVICE_MASK services);
389 extern BOOLEAN bta_ag_is_server_closed (tBTA_AG_SCB *p_scb);
390 extern void bta_ag_rfc_do_close(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
391 extern void bta_ag_rfc_do_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
392 
393 /* SCO functions */
394 extern BOOLEAN bta_ag_sco_is_open(tBTA_AG_SCB *p_scb);
395 extern BOOLEAN bta_ag_sco_is_opening(tBTA_AG_SCB *p_scb);
396 extern void bta_ag_sco_conn_rsp(tBTA_AG_SCB *p_scb, tBTM_ESCO_CONN_REQ_EVT_DATA *p_data);
397 
398 /* AT command functions */
399 extern void bta_ag_at_hsp_cback(tBTA_AG_SCB *p_scb, UINT16 cmd, UINT8 arg_type, char *p_arg, INT16 int_arg);
400 extern void bta_ag_at_hfp_cback(tBTA_AG_SCB *p_scb, UINT16 cmd, UINT8 arg_type, char *p_arg, INT16 int_arg);
401 extern void bta_ag_at_err_cback(tBTA_AG_SCB *p_scb, BOOLEAN unknown, char *p_arg);
402 extern BOOLEAN bta_ag_inband_enabled(tBTA_AG_SCB *p_scb);
403 extern void bta_ag_send_call_inds(tBTA_AG_SCB *p_scb, tBTA_AG_RES result);
404 
405 /* Action functions */
406 extern void bta_ag_register(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
407 extern void bta_ag_deregister(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
408 extern void bta_ag_start_dereg(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
409 extern void bta_ag_start_close(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
410 extern void bta_ag_start_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
411 extern void bta_ag_disc_int_res(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
412 extern void bta_ag_disc_acp_res(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
413 extern void bta_ag_disc_fail(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
414 extern void bta_ag_open_fail(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
415 extern void bta_ag_rfc_fail(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
416 extern void bta_ag_rfc_close(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
417 extern void bta_ag_rfc_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
418 extern void bta_ag_rfc_acp_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
419 extern void bta_ag_rfc_data(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
420 extern void bta_ag_sco_listen(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
421 extern void bta_ag_sco_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
422 extern void bta_ag_sco_close(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
423 #if (BTM_WBS_INCLUDED == TRUE)
424 extern void bta_ag_sco_codec_nego(tBTA_AG_SCB *p_scb, BOOLEAN result);
425 extern void bta_ag_codec_negotiate (tBTA_AG_SCB *p_scb);
426 extern void bta_ag_send_bcs(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
427 #endif
428 extern void bta_ag_sco_shutdown(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
429 extern void bta_ag_sco_conn_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
430 extern void bta_ag_sco_conn_close(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
431 extern void bta_ag_post_sco_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
432 extern void bta_ag_post_sco_close(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
433 extern void bta_ag_svc_conn_open(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
434 extern void bta_ag_result(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
435 extern void bta_ag_setcodec(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
436 extern void bta_ag_send_ring(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
437 extern void bta_ag_ci_sco_data(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
438 extern void bta_ag_set_esco_param(BOOLEAN set_reset, tBTM_ESCO_PARAMS *param);
439 extern void bta_ag_ci_rx_data(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
440 extern void bta_ag_rcvd_slc_ready(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data);
441 
442 #endif /* #if (BTA_AG_INCLUDED == TRUE) */
443 
444 #endif /* BTA_AG_INT_H */
445