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