Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/btif/src/
Dbtif_a2dp_control.cc163 btav_a2dp_codec_config_t codec_capability; in btif_a2dp_control_on_get_output_audio_config() local
167 codec_capability.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_NONE; in btif_a2dp_control_on_get_output_audio_config()
168 codec_capability.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_NONE; in btif_a2dp_control_on_get_output_audio_config()
169 codec_capability.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_NONE; in btif_a2dp_control_on_get_output_audio_config()
174 codec_capability = current_codec->getCodecCapability(); in btif_a2dp_control_on_get_output_audio_config()
190 reinterpret_cast<const uint8_t*>(&codec_capability.sample_rate), in btif_a2dp_control_on_get_output_audio_config()
193 reinterpret_cast<const uint8_t*>(&codec_capability.bits_per_sample), in btif_a2dp_control_on_get_output_audio_config()
196 reinterpret_cast<const uint8_t*>(&codec_capability.channel_mode), in btif_a2dp_control_on_get_output_audio_config()
/packages/modules/Bluetooth/system/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc538 btav_a2dp_codec_config_t* codec_capability, bool update_stream_config) { in ha_read_output_audio_config() argument
561 if (ha_ctrl_receive(common, &codec_capability->sample_rate, in ha_read_output_audio_config()
565 if (ha_ctrl_receive(common, &codec_capability->bits_per_sample, in ha_read_output_audio_config()
569 if (ha_ctrl_receive(common, &codec_capability->channel_mode, in ha_read_output_audio_config()
666 codec_capability->sample_rate, codec_capability->bits_per_sample, in ha_read_output_audio_config()
667 codec_capability->channel_mode); in ha_read_output_audio_config()
1193 btav_a2dp_codec_config_t codec_capability; in out_get_parameters() local
1206 &codec_capability, in out_get_parameters()
1215 if (codec_capability.bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16) { in out_get_parameters()
1219 if (codec_capability.bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24) { in out_get_parameters()
[all …]
/packages/modules/Bluetooth/system/bta/hearing_aid/
Dhearing_aid_audio_source.cc237 btav_a2dp_codec_config_t codec_capability; in hearing_aid_recv_ctrl_data() local
240 codec_capability.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_16000; in hearing_aid_recv_ctrl_data()
243 codec_capability.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_24000; in hearing_aid_recv_ctrl_data()
249 codec_capability.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in hearing_aid_recv_ctrl_data()
252 codec_capability.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in hearing_aid_recv_ctrl_data()
267 reinterpret_cast<const uint8_t*>(&codec_capability.sample_rate), in hearing_aid_recv_ctrl_data()
271 reinterpret_cast<const uint8_t*>(&codec_capability.bits_per_sample), in hearing_aid_recv_ctrl_data()
275 reinterpret_cast<const uint8_t*>(&codec_capability.channel_mode), in hearing_aid_recv_ctrl_data()
/packages/modules/Bluetooth/system/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc535 btav_a2dp_codec_config_t* codec_capability, bool update_stream_config) { in a2dp_read_output_audio_config() argument
558 if (a2dp_ctrl_receive(common, &codec_capability->sample_rate, in a2dp_read_output_audio_config()
562 if (a2dp_ctrl_receive(common, &codec_capability->bits_per_sample, in a2dp_read_output_audio_config()
566 if (a2dp_ctrl_receive(common, &codec_capability->channel_mode, in a2dp_read_output_audio_config()
657 codec_capability->sample_rate, codec_capability->bits_per_sample, in a2dp_read_output_audio_config()
658 codec_capability->channel_mode); in a2dp_read_output_audio_config()
1210 btav_a2dp_codec_config_t codec_capability; in out_get_parameters() local
1223 &codec_capability, in out_get_parameters()
1232 if (codec_capability.bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16) { in out_get_parameters()
1236 if (codec_capability.bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_24) { in out_get_parameters()
[all …]
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Dcodec_status_aidl.cc584 auto codec_capability = in IsCodecOffloadingEnabled() local
586 switch (codec_capability.codecType) { in IsCodecOffloadingEnabled()
589 codec_capability.capabilities in IsCodecOffloadingEnabled()
598 codec_capability.capabilities in IsCodecOffloadingEnabled()
609 codec_capability.capabilities in IsCodecOffloadingEnabled()
618 codec_capability.capabilities in IsCodecOffloadingEnabled()
627 codec_capability.capabilities in IsCodecOffloadingEnabled()
638 toString(codec_capability.codecType)); in IsCodecOffloadingEnabled()
/packages/modules/Bluetooth/system/audio_hal_interface/hidl/
Dcodec_status_hidl.cc537 auto codec_capability = preference.codecCapabilities(); in IsCodecOffloadingEnabled() local
538 switch (codec_capability.codecType) { in IsCodecOffloadingEnabled()
540 auto sbc_capability = codec_capability.capabilities.sbcCapabilities(); in IsCodecOffloadingEnabled()
545 auto aac_capability = codec_capability.capabilities.aacCapabilities(); in IsCodecOffloadingEnabled()
552 auto aptx_capability = codec_capability.capabilities.aptxCapabilities(); in IsCodecOffloadingEnabled()
557 auto ldac_capability = codec_capability.capabilities.ldacCapabilities(); in IsCodecOffloadingEnabled()
565 toString(codec_capability.codecType)); in IsCodecOffloadingEnabled()
Dclient_interface_hidl_unittest.cc261 CodecCapabilities codec_capability = {}; in IsCodecOffloadingSupported() local
265 codec_capability = audio_capability.codecCapabilities(); in IsCodecOffloadingSupported()
268 if (codec_capability.codecType != codec_config.codecType) { in IsCodecOffloadingSupported()
277 codec_capability.capabilities.sbcCapabilities(); in IsCodecOffloadingSupported()
293 codec_capability.capabilities.aacCapabilities(); in IsCodecOffloadingSupported()
308 codec_capability.capabilities.ldacCapabilities(); in IsCodecOffloadingSupported()
320 codec_capability.capabilities.aptxCapabilities(); in IsCodecOffloadingSupported()
/packages/modules/Bluetooth/system/stack/a2dp/
Da2dp_codec_config.cc1014 btav_a2dp_codec_config_t codec_capability = in getCodecConfigAndCapabilities() local
1017 if ((codec_capability.sample_rate == BTAV_A2DP_CODEC_SAMPLE_RATE_NONE) || in getCodecConfigAndCapabilities()
1018 (codec_capability.bits_per_sample == in getCodecConfigAndCapabilities()
1020 (codec_capability.channel_mode == BTAV_A2DP_CODEC_CHANNEL_MODE_NONE)) { in getCodecConfigAndCapabilities()
1023 codecs_capabilities.push_back(codec_capability); in getCodecConfigAndCapabilities()