Home
last modified time | relevance | path

Searched refs:codec_capability (Results 1 – 7 of 7) sorted by relevance

/system/bt/btif/src/
Dbtif_a2dp_control.cc201 btav_a2dp_codec_config_t codec_capability; in btif_a2dp_recv_ctrl_data() local
205 codec_capability.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in btif_a2dp_recv_ctrl_data()
206 codec_capability.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in btif_a2dp_recv_ctrl_data()
207 codec_capability.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_NONE; in btif_a2dp_recv_ctrl_data()
212 codec_capability = current_codec->getCodecCapability(); in btif_a2dp_recv_ctrl_data()
228 reinterpret_cast<const uint8_t*>(&codec_capability.sample_rate), in btif_a2dp_recv_ctrl_data()
232 reinterpret_cast<const uint8_t*>(&codec_capability.bits_per_sample), in btif_a2dp_recv_ctrl_data()
236 reinterpret_cast<const uint8_t*>(&codec_capability.channel_mode), in btif_a2dp_recv_ctrl_data()
/system/bt/bta/hearing_aid/
Dhearing_aid_audio_source.cc221 btav_a2dp_codec_config_t codec_capability; in hearing_aid_recv_ctrl_data() local
224 codec_capability.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_16000; in hearing_aid_recv_ctrl_data()
227 codec_capability.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_24000; in hearing_aid_recv_ctrl_data()
233 codec_capability.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in hearing_aid_recv_ctrl_data()
236 codec_capability.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in hearing_aid_recv_ctrl_data()
251 reinterpret_cast<const uint8_t*>(&codec_capability.sample_rate), in hearing_aid_recv_ctrl_data()
255 reinterpret_cast<const uint8_t*>(&codec_capability.bits_per_sample), in hearing_aid_recv_ctrl_data()
259 reinterpret_cast<const uint8_t*>(&codec_capability.channel_mode), in hearing_aid_recv_ctrl_data()
/system/bt/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc530 btav_a2dp_codec_config_t* codec_capability, bool update_stream_config) { in ha_read_output_audio_config() argument
553 if (ha_ctrl_receive(common, &codec_capability->sample_rate, in ha_read_output_audio_config()
557 if (ha_ctrl_receive(common, &codec_capability->bits_per_sample, in ha_read_output_audio_config()
561 if (ha_ctrl_receive(common, &codec_capability->channel_mode, in ha_read_output_audio_config()
658 codec_capability->sample_rate, codec_capability->bits_per_sample, in ha_read_output_audio_config()
659 codec_capability->channel_mode); in ha_read_output_audio_config()
1185 btav_a2dp_codec_config_t codec_capability; in out_get_parameters() local
1198 &codec_capability, in out_get_parameters()
1207 if (codec_capability.bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16) { in out_get_parameters()
1211 if (codec_capability.bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24) { in out_get_parameters()
[all …]
/system/bt/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc527 btav_a2dp_codec_config_t* codec_capability, bool update_stream_config) { in a2dp_read_output_audio_config() argument
550 if (a2dp_ctrl_receive(common, &codec_capability->sample_rate, in a2dp_read_output_audio_config()
554 if (a2dp_ctrl_receive(common, &codec_capability->bits_per_sample, in a2dp_read_output_audio_config()
558 if (a2dp_ctrl_receive(common, &codec_capability->channel_mode, in a2dp_read_output_audio_config()
649 codec_capability->sample_rate, codec_capability->bits_per_sample, in a2dp_read_output_audio_config()
650 codec_capability->channel_mode); in a2dp_read_output_audio_config()
1202 btav_a2dp_codec_config_t codec_capability; in out_get_parameters() local
1215 &codec_capability, in out_get_parameters()
1224 if (codec_capability.bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16) { in out_get_parameters()
1228 if (codec_capability.bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24) { in out_get_parameters()
[all …]
/system/bt/audio_hal_interface/
Dcodec_status.cc533 auto codec_capability = preference.codecCapabilities(); in IsCodecOffloadingEnabled() local
534 switch (codec_capability.codecType) { in IsCodecOffloadingEnabled()
536 auto sbc_capability = codec_capability.capabilities.sbcCapabilities(); in IsCodecOffloadingEnabled()
541 auto aac_capability = codec_capability.capabilities.aacCapabilities(); in IsCodecOffloadingEnabled()
548 auto aptx_capability = codec_capability.capabilities.aptxCapabilities(); in IsCodecOffloadingEnabled()
553 auto ldac_capability = codec_capability.capabilities.ldacCapabilities(); in IsCodecOffloadingEnabled()
561 << toString(codec_capability.codecType); in IsCodecOffloadingEnabled()
Dclient_interface_unittest.cc256 CodecCapabilities codec_capability = {}; in IsCodecOffloadingSupported() local
260 codec_capability = audio_capability.codecCapabilities(); in IsCodecOffloadingSupported()
263 if (codec_capability.codecType != codec_config.codecType) { in IsCodecOffloadingSupported()
272 codec_capability.capabilities.sbcCapabilities(); in IsCodecOffloadingSupported()
288 codec_capability.capabilities.aacCapabilities(); in IsCodecOffloadingSupported()
303 codec_capability.capabilities.ldacCapabilities(); in IsCodecOffloadingSupported()
315 codec_capability.capabilities.aptxCapabilities(); in IsCodecOffloadingSupported()
/system/bt/stack/a2dp/
Da2dp_codec_config.cc987 btav_a2dp_codec_config_t codec_capability = in getCodecConfigAndCapabilities() local
990 if ((codec_capability.sample_rate == BTAV_A2DP_CODEC_SAMPLE_RATE_NONE) || in getCodecConfigAndCapabilities()
991 (codec_capability.bits_per_sample == in getCodecConfigAndCapabilities()
993 (codec_capability.channel_mode == BTAV_A2DP_CODEC_CHANNEL_MODE_NONE)) { in getCodecConfigAndCapabilities()
996 codecs_capabilities.push_back(codec_capability); in getCodecConfigAndCapabilities()