/****************************************************************************** * * 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 /* 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