Home | History | Annotate | Download | only in jv
      1 /******************************************************************************
      2  *
      3  *  Copyright (C) 2004-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 file contains compile-time configurable constants for advanced
     22  *  audio
     23  *
     24  ******************************************************************************/
     25 
     26 #include "gki.h"
     27 #include "bta_api.h"
     28 #include "bd.h"
     29 #include "bta_jv_api.h"
     30 
     31 #ifndef BTA_JV_SDP_DB_SIZE
     32 #define BTA_JV_SDP_DB_SIZE          4500
     33 #endif
     34 
     35 #ifndef BTA_JV_SDP_RAW_DATA_SIZE
     36 #define BTA_JV_SDP_RAW_DATA_SIZE    1800
     37 #endif
     38 
     39 /* The platform may choose to use dynamic memory for these data buffers.
     40  * p_bta_jv_cfg->p_sdp_db must be allocated/stay allocated
     41  * between BTA_JvEnable and BTA_JvDisable
     42  * p_bta_jv_cfg->p_sdp_raw_data can be allocated before calling BTA_JvStartDiscovery
     43  * it can be de-allocated after the last call to access the database */
     44 static UINT8 bta_jv_sdp_raw_data[BTA_JV_SDP_RAW_DATA_SIZE];
     45 static UINT8 bta_jv_sdp_db_data[BTA_JV_SDP_DB_SIZE];
     46 
     47 /* JV configuration structure */
     48 const tBTA_JV_CFG bta_jv_cfg =
     49 {
     50     BTA_JV_SDP_RAW_DATA_SIZE,   /* The size of p_sdp_raw_data */
     51     BTA_JV_SDP_DB_SIZE,         /* The size of p_sdp_db_data */
     52     bta_jv_sdp_raw_data,        /* The data buffer to keep raw data */
     53     (tSDP_DISCOVERY_DB *)bta_jv_sdp_db_data /* The data buffer to keep SDP database */
     54 };
     55 
     56 tBTA_JV_CFG *p_bta_jv_cfg = (tBTA_JV_CFG *) &bta_jv_cfg;
     57 
     58 
     59