• Home
  • Raw
  • Download

Lines Matching refs:codec_config

50     btav_a2dp_codec_config_t* codec_config, btav_a2dp_codec_index_t codec_index,  in init_btav_a2dp_codec_config()  argument
52 memset(codec_config, 0, sizeof(btav_a2dp_codec_config_t)); in init_btav_a2dp_codec_config()
53 codec_config->codec_type = codec_index; in init_btav_a2dp_codec_config()
54 codec_config->codec_priority = codec_priority; in init_btav_a2dp_codec_config()
111 A2dpCodecConfig* codec_config = nullptr; in createCodec() local
114 codec_config = new A2dpCodecConfigSbcSource(codec_priority); in createCodec()
117 codec_config = new A2dpCodecConfigSbcSink(codec_priority); in createCodec()
120 codec_config = new A2dpCodecConfigAacSource(codec_priority); in createCodec()
123 codec_config = new A2dpCodecConfigAacSink(codec_priority); in createCodec()
126 codec_config = new A2dpCodecConfigAptx(codec_priority); in createCodec()
129 codec_config = new A2dpCodecConfigAptxHd(codec_priority); in createCodec()
132 codec_config = new A2dpCodecConfigLdacSource(codec_priority); in createCodec()
135 codec_config = new A2dpCodecConfigLdacSink(codec_priority); in createCodec()
141 if (codec_config != nullptr) { in createCodec()
142 if (!codec_config->init()) { in createCodec()
143 delete codec_config; in createCodec()
144 codec_config = nullptr; in createCodec()
148 return codec_config; in createCodec()
176 uint8_t codec_config[AVDT_CODEC_SIZE]; in getCodecSpecificConfig() local
186 memcpy(codec_config, ota_codec_config_, sizeof(ota_codec_config_)); in getCodecSpecificConfig()
187 tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(codec_config); in getCodecSpecificConfig()
191 codec_config[4]; // blk_len | subbands | Alloc Method in getCodecSpecificConfig()
192 p_a2dp_offload->codec_info[1] = codec_config[5]; // Min bit pool in getCodecSpecificConfig()
193 p_a2dp_offload->codec_info[2] = codec_config[6]; // Max bit pool in getCodecSpecificConfig()
195 codec_config[3]; // Sample freq | channel mode in getCodecSpecificConfig()
198 p_a2dp_offload->codec_info[0] = codec_config[3]; // object type in getCodecSpecificConfig()
199 p_a2dp_offload->codec_info[1] = codec_config[6]; // VBR | BR in getCodecSpecificConfig()
202 vendor_id = A2DP_VendorCodecGetVendorId(codec_config); in getCodecSpecificConfig()
203 codec_id = A2DP_VendorCodecGetCodecId(codec_config); in getCodecSpecificConfig()
237 codec_config[10]; // LDAC specific channel mode in getCodecSpecificConfig()
319 const btav_a2dp_codec_config_t& codec_config) { in isCodecConfigEmpty() argument
321 (codec_config.codec_priority == BTAV_A2DP_CODEC_PRIORITY_DEFAULT) && in isCodecConfigEmpty()
322 (codec_config.sample_rate == BTAV_A2DP_CODEC_SAMPLE_RATE_NONE) && in isCodecConfigEmpty()
323 (codec_config.bits_per_sample == BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE) && in isCodecConfigEmpty()
324 (codec_config.channel_mode == BTAV_A2DP_CODEC_CHANNEL_MODE_NONE) && in isCodecConfigEmpty()
325 (codec_config.codec_specific_1 == 0) && in isCodecConfigEmpty()
326 (codec_config.codec_specific_2 == 0) && in isCodecConfigEmpty()
327 (codec_config.codec_specific_3 == 0) && in isCodecConfigEmpty()
328 (codec_config.codec_specific_4 == 0)); in isCodecConfigEmpty()
400 const btav_a2dp_codec_config_t& codec_config) { in codecConfigIsValid() argument
401 return (codec_config.codec_type < BTAV_A2DP_CODEC_INDEX_MAX) && in codecConfigIsValid()
402 (codec_config.sample_rate != BTAV_A2DP_CODEC_SAMPLE_RATE_NONE) && in codecConfigIsValid()
403 (codec_config.bits_per_sample != in codecConfigIsValid()
405 (codec_config.channel_mode != BTAV_A2DP_CODEC_CHANNEL_MODE_NONE); in codecConfigIsValid()
409 const btav_a2dp_codec_config_t& codec_config) { in codecConfig2Str() argument
412 if (!codecConfigIsValid(codec_config)) return "Invalid"; in codecConfig2Str()
415 result.append(codecSampleRate2Str(codec_config.sample_rate)); in codecConfig2Str()
417 result.append(codecBitsPerSample2Str(codec_config.bits_per_sample)); in codecConfig2Str()
419 result.append(codecChannelMode2Str(codec_config.channel_mode)); in codecConfig2Str()
614 A2dpCodecConfig* codec_config = in init() local
616 if (codec_config == nullptr) continue; in init()
620 codec_config->name().c_str(), codec_priority); in init()
624 if (codec_config->codecPriority() == BTAV_A2DP_CODEC_PRIORITY_DISABLED) { in init()
625 disabled_codecs_.insert(std::make_pair(codec_index, codec_config)); in init()
629 indexed_codecs_.insert(std::make_pair(codec_index, codec_config)); in init()
632 ordered_source_codecs_.push_back(codec_config); in init()
635 ordered_sink_codecs_.push_back(codec_config); in init()
964 btav_a2dp_codec_config_t codec_config; in getCodecConfigAndCapabilities() local
965 memset(&codec_config, 0, sizeof(codec_config)); in getCodecConfigAndCapabilities()
966 *p_codec_config = codec_config; in getCodecConfigAndCapabilities()
1005 for (auto codec_config : ordered_source_codecs_) { in debug_codec_dump() local
1006 codec_config->debug_codec_dump(fd); in debug_codec_dump()