1 /* 2 * Copyright (C) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef A2DP_CODEC_ERRORS_H 17 #define A2DP_CODEC_ERRORS_H 18 19 #include <stdio.h> 20 21 enum A2dpCodecError { 22 // Failed 23 A2DP_CODEC_ERROR_FAIL = 0x0A, 24 A2DP_CODEC_ERROR_BUSY = 0x0B, 25 26 // Bad parameters 27 A2DP_CODEC_ERROR_INVALID_PARAMS = 0x0C, 28 29 // Wrong codec info 30 A2DP_CODEC_ERROR_WRONG_CODEC = 0x0D, 31 32 // Media Codec Type is not valid 33 A2DP_CODEC_ERROR_BAD_CODEC_TYPE = 0xC1, 34 35 // Media Codec Type is not supported 36 A2DP_CODEC_ERROR_NOSUPPORTED_CODEC_TYPE = 0xC2, 37 38 // Sampling Frequency is not valid or multiple values have been selected 39 A2DP_CODEC_ERROR_BAD_SAMP_FREQ = 0xC3, 40 41 // Sampling Frequency is not supported 42 A2DP_CODEC_ERROR_NOSUPPORTED_SAMP_FREQ = 0xC4, 43 44 // Channel Mode is not valid or multiple values * have been selected 45 A2DP_CODEC_ERROR_BAD_CHANNEL_MODE = 0xC5, 46 47 // Channel Mode is not supported 48 A2DP_CODEC_ERROR_NOSUPPORTED_CHANNEL_MODE = 0xC6, 49 50 // None or multiple values have been selected for Number of Subbands 51 A2DP_CODEC_ERROR_BAD_SUBBANDS = 0xC7, 52 53 /* Number of Subbands is not supported */ 54 A2DP_CODEC_ERROR_NOSUPPORTED_SUBBANDS = 0xC8, 55 56 /* Allocation Method is not supported */ 57 A2DP_CODEC_ERROR_NOSUPPORTED_ALLOC_METHOD = 0xCA, 58 59 /* Minimum Bitpool Value is not valid */ 60 A2DP_CODEC_ERROR_BAD_MIN_BITPOOL = 0xCB, 61 62 /* Minimum Bitpool Value is not supported */ 63 A2DP_CODEC_ERROR_NOSUPPORTED_MIN_BITPOOL = 0xCC, 64 65 /* Maximum Bitpool Value is not valid */ 66 A2DP_CODEC_ERROR_BAD_MAX_BITPOOL = 0xCD, 67 68 /* Maximum Bitpool Value is not supported */ 69 A2DP_CODEC_ERROR_NOSUPPORTED_MAX_BITPOOL = 0xCE, 70 71 // None or multiple values have been selected for Bit Rate 72 A2DP_CODEC_ERROR_BAD_BIT_RATE = 0xD4, 73 74 // Bit Rate is not supported 75 A2DP_CODEC_ERROR_NOSUPPORTED_BIT_RATE = 0xD5, 76 77 // Object Type is not supported 78 A2DP_CODEC_ERROR_NOSUPPORTED_OBJ_TYPE = 0xD6, 79 80 // None or multiple values have been selected for Channels 81 A2DP_CODEC_ERROR_BAD_CHANNEL = 0xD8, 82 83 // Channels is not supported 84 A2DP_CODEC_ERROR_NOSUPPORTED_CHANNEL = 0xD9, 85 86 // None or multiple values have been selected for Block Length 87 A2DP_CODEC_ERROR_BAD_BLOCK_LEN = 0xDD, 88 89 // The requested CP Type is not supported. 90 A2DP_CODEC_ERROR_BAD_CP_TYPE = 0xE0, 91 }; 92 93 #endif // A2DP_CODEC_ERRORS_H 94