1 /******************************************************************************
3 * Copyright (C) 2009-2012 Broadcom Corporation
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:
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 ******************************************************************************/
19 /*****************************************************************************
21 * Filename: audio_a2dp_hw.h
25 *****************************************************************************/
27 #ifndef AUDIO_A2DP_HW_H
28 #define AUDIO_A2DP_HW_H
30 /*****************************************************************************
32 ******************************************************************************/
34 #define A2DP_AUDIO_HARDWARE_INTERFACE "audio.a2dp"
35 #define A2DP_CTRL_PATH "/data/misc/bluedroid/.a2dp_ctrl"
36 #define A2DP_DATA_PATH "/data/misc/bluedroid/.a2dp_data"
38 #define AUDIO_STREAM_DEFAULT_RATE 44100
39 #define AUDIO_STREAM_DEFAULT_FORMAT AUDIO_FORMAT_PCM_16_BIT
40 #define AUDIO_STREAM_DEFAULT_CHANNEL_FLAG AUDIO_CHANNEL_OUT_STEREO
41 #define AUDIO_STREAM_OUTPUT_BUFFER_SZ (20*512)
42 #define AUDIO_SKT_DISCONNECTED (-1)
46 A2DP_CTRL_CMD_CHECK_READY,
49 A2DP_CTRL_CMD_SUSPEND,
50 A2DP_CTRL_GET_AUDIO_CONFIG,
51 A2DP_CTRL_CMD_OFFLOAD_START,
55 A2DP_CTRL_ACK_SUCCESS,
56 A2DP_CTRL_ACK_FAILURE,
57 A2DP_CTRL_ACK_INCALL_FAILURE, /* Failure when in Call*/
58 A2DP_CTRL_ACK_UNSUPPORTED
62 /*****************************************************************************
63 ** Type definitions for callback functions
64 ******************************************************************************/
66 /*****************************************************************************
67 ** Type definitions and return values
68 ******************************************************************************/
70 /*****************************************************************************
71 ** Extern variables and functions
72 ******************************************************************************/
74 /*****************************************************************************
76 ******************************************************************************/
79 /*****************************************************************************
87 ******************************************************************************/
89 #endif /* A2DP_AUDIO_HW_H */