• Home
  • Raw
  • Download

Lines Matching refs:codec_index

54     btav_a2dp_codec_config_t* codec_config, btav_a2dp_codec_index_t codec_index,  in init_btav_a2dp_codec_config()  argument
57 codec_config->codec_type = codec_index; in init_btav_a2dp_codec_config()
61 A2dpCodecConfig::A2dpCodecConfig(btav_a2dp_codec_index_t codec_index, in A2dpCodecConfig() argument
64 : codec_index_(codec_index), in A2dpCodecConfig()
111 btav_a2dp_codec_index_t codec_index, in createCodec() argument
113 LOG_INFO("%s: codec %s", __func__, A2DP_CodecIndexStr(codec_index)); in createCodec()
116 switch (codec_index) { in createCodec()
610 btav_a2dp_codec_index_t codec_index = in init() local
616 auto cp_iter = codec_priorities_.find(codec_index); in init()
622 if ((codec_index < BTAV_A2DP_CODEC_INDEX_SOURCE_MAX) && in init()
628 A2dpCodecConfig::createCodec(codec_index, codec_priority); in init()
638 disabled_codecs_.insert(std::make_pair(codec_index, codec_config)); in init()
642 indexed_codecs_.insert(std::make_pair(codec_index, codec_config)); in init()
644 if (codec_index < BTAV_A2DP_CODEC_INDEX_SOURCE_MAX) { in init()
675 btav_a2dp_codec_index_t codec_index = A2DP_SourceCodecIndex(p_codec_info); in findSourceCodecConfig() local
676 if (codec_index == BTAV_A2DP_CODEC_INDEX_MAX) return nullptr; in findSourceCodecConfig()
678 auto iter = indexed_codecs_.find(codec_index); in findSourceCodecConfig()
685 btav_a2dp_codec_index_t codec_index = A2DP_SinkCodecIndex(p_codec_info); in findSinkCodecConfig() local
686 if (codec_index == BTAV_A2DP_CODEC_INDEX_MAX) return nullptr; in findSinkCodecConfig()
688 auto iter = indexed_codecs_.find(codec_index); in findSinkCodecConfig()
693 bool A2dpCodecs::isSupportedCodec(btav_a2dp_codec_index_t codec_index) { in isSupportedCodec() argument
695 return indexed_codecs_.find(codec_index) != indexed_codecs_.end(); in isSupportedCodec()
1485 const char* A2DP_CodecIndexStr(btav_a2dp_codec_index_t codec_index) { in A2DP_CodecIndexStr() argument
1486 switch (codec_index) { in A2DP_CodecIndexStr()
1502 if (codec_index < BTAV_A2DP_CODEC_INDEX_MAX) in A2DP_CodecIndexStr()
1503 return A2DP_VendorCodecIndexStr(codec_index); in A2DP_CodecIndexStr()
1509 bool A2DP_InitCodecConfig(btav_a2dp_codec_index_t codec_index, in A2DP_InitCodecConfig() argument
1511 LOG_VERBOSE("%s: codec %s", __func__, A2DP_CodecIndexStr(codec_index)); in A2DP_InitCodecConfig()
1517 switch (codec_index) { in A2DP_InitCodecConfig()
1533 if (codec_index < BTAV_A2DP_CODEC_INDEX_MAX) in A2DP_InitCodecConfig()
1534 return A2DP_VendorInitCodecConfig(codec_index, p_cfg); in A2DP_InitCodecConfig()