lin
2025-07-31 065ea569db06206874bbfa18eb25ff6121aec09b
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/******************************************************************************
 *
 *  Copyright 2000-2012 Broadcom Corporation
 *
 *  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.
 *
 ******************************************************************************/
 
//
// A2DP Error Codes
//
 
#ifndef A2DP_ERROR_CODES_H
#define A2DP_ERROR_CODES_H
 
#include <inttypes.h>
 
/* Success */
#define A2DP_SUCCESS 0
 
/* Failed */
#define A2DP_FAIL 0x0A
 
/* A2DP_FindService is already in progress */
#define A2DP_BUSY 0x0B
 
/* Bad parameters */
#define A2DP_INVALID_PARAMS 0x0C
 
/* Wrong codec info */
#define A2DP_WRONG_CODEC 0x0D
 
/* Media Codec Type is not valid */
#define A2DP_BAD_CODEC_TYPE 0xC1
 
/* Media Codec Type is not supported */
#define A2DP_NS_CODEC_TYPE 0xC2
 
/* Sampling Frequency is not valid or multiple values have been selected */
#define A2DP_BAD_SAMP_FREQ 0xC3
 
/* Sampling Frequency is not supported */
#define A2DP_NS_SAMP_FREQ 0xC4
 
/* Channel Mode is not valid or multiple values * have been selected */
#define A2DP_BAD_CH_MODE 0xC5
 
/* Channel Mode is not supported */
#define A2DP_NS_CH_MODE 0xC6
 
/* None or multiple values have been selected for Number of Subbands */
#define A2DP_BAD_SUBBANDS 0xC7
 
/* Number of Subbands is not supported */
#define A2DP_NS_SUBBANDS 0xC8
 
/* None or multiple values have been selected for Allocation Method */
#define A2DP_BAD_ALLOC_METHOD 0xC9
 
/* Allocation Method is not supported */
#define A2DP_NS_ALLOC_METHOD 0xCA
 
/* Minimum Bitpool Value is not valid */
#define A2DP_BAD_MIN_BITPOOL 0xCB
 
/* Minimum Bitpool Value is not supported */
#define A2DP_NS_MIN_BITPOOL 0xCC
 
/* Maximum Bitpool Value is not valid */
#define A2DP_BAD_MAX_BITPOOL 0xCD
 
/* Maximum Bitpool Value is not supported */
#define A2DP_NS_MAX_BITPOOL 0xCE
 
/* None or multiple values have been selected for Layer */
#define A2DP_BAD_LAYER 0xCF
 
/* Layer is not supported */
#define A2DP_NS_LAYER 0xD0
 
/* CRC is not supported */
#define A2DP_NS_CRC 0xD1
 
/* MPF-2 is not supported */
#define A2DP_NS_MPF 0xD2
 
/* VBR is not supported */
#define A2DP_NS_VBR 0xD3
 
/* None or multiple values have been selected for Bit Rate */
#define A2DP_BAD_BIT_RATE 0xD4
 
/* Bit Rate is not supported */
#define A2DP_NS_BIT_RATE 0xD5
 
/* Either 1) Object type is not valid (b3-b0) or 2) None or multiple values
 * have been * selected for Object Type
 */
#define A2DP_BAD_OBJ_TYPE 0xD6
 
/* Object type is not supported */
#define A2DP_NS_OBJ_TYPE 0xD7
 
/* None or multiple values have been selected for Channels */
#define A2DP_BAD_CHANNEL 0xD8
 
/* Channels is not supported */
#define A2DP_NS_CHANNEL 0xD9
 
/* None or multiple values have been selected for Block Length */
#define A2DP_BAD_BLOCK_LEN 0xDD
 
/* The requested CP Type is not supported. */
#define A2DP_BAD_CP_TYPE 0xE0
 
/* The format of Content Protection Service Capability/Content Protection
 * Scheme Dependent Data is not correct.
 */
#define A2DP_BAD_CP_FORMAT 0xE1
 
typedef uint8_t tA2DP_STATUS;
 
#endif  // A2DP_ERROR_CODES_H