Home
last modified time | relevance | path

Searched refs:codec_capability (Results 1 – 6 of 6) 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.cc195 btav_a2dp_codec_config_t codec_capability; in hearing_aid_recv_ctrl_data() local
198 codec_capability.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_16000; in hearing_aid_recv_ctrl_data()
201 codec_capability.sample_rate = BTAV_A2DP_CODEC_SAMPLE_RATE_24000; in hearing_aid_recv_ctrl_data()
207 codec_capability.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16; in hearing_aid_recv_ctrl_data()
210 codec_capability.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in hearing_aid_recv_ctrl_data()
225 reinterpret_cast<const uint8_t*>(&codec_capability.sample_rate), in hearing_aid_recv_ctrl_data()
229 reinterpret_cast<const uint8_t*>(&codec_capability.bits_per_sample), in hearing_aid_recv_ctrl_data()
233 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.cc509 btav_a2dp_codec_config_t* codec_capability, bool update_stream_config) { in ha_read_output_audio_config() argument
532 if (ha_ctrl_receive(common, &codec_capability->sample_rate, in ha_read_output_audio_config()
536 if (ha_ctrl_receive(common, &codec_capability->bits_per_sample, in ha_read_output_audio_config()
540 if (ha_ctrl_receive(common, &codec_capability->channel_mode, in ha_read_output_audio_config()
637 codec_capability->sample_rate, codec_capability->bits_per_sample, in ha_read_output_audio_config()
638 codec_capability->channel_mode); in ha_read_output_audio_config()
1163 btav_a2dp_codec_config_t codec_capability; in out_get_parameters() local
1176 &codec_capability, in out_get_parameters()
1185 if (codec_capability.bits_per_sample & BTAV_A2DP_CODEC_BITS_PER_SAMPLE_16) { in out_get_parameters()
1189 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.cc528 btav_a2dp_codec_config_t* codec_capability, bool update_stream_config) { in a2dp_read_output_audio_config() argument
551 if (a2dp_ctrl_receive(common, &codec_capability->sample_rate, in a2dp_read_output_audio_config()
555 if (a2dp_ctrl_receive(common, &codec_capability->bits_per_sample, in a2dp_read_output_audio_config()
559 if (a2dp_ctrl_receive(common, &codec_capability->channel_mode, in a2dp_read_output_audio_config()
650 codec_capability->sample_rate, codec_capability->bits_per_sample, in a2dp_read_output_audio_config()
651 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/
Dclient_interface_unittest.cc125 CodecCapabilities codec_capability = {}; in IsOffloadCodecConfigurationSupported() local
129 codec_capability = audio_capability.codecCapabilities(); in IsOffloadCodecConfigurationSupported()
132 if (codec_capability.codecType != codec_config.codecType) { in IsOffloadCodecConfigurationSupported()
141 codec_capability.capabilities.sbcCapabilities(); in IsOffloadCodecConfigurationSupported()
157 codec_capability.capabilities.aacCapabilities(); in IsOffloadCodecConfigurationSupported()
172 codec_capability.capabilities.ldacCapabilities(); in IsOffloadCodecConfigurationSupported()
184 codec_capability.capabilities.aptxCapabilities(); in IsOffloadCodecConfigurationSupported()
/system/bt/stack/a2dp/
Da2dp_codec_config.cc977 btav_a2dp_codec_config_t codec_capability = in getCodecConfigAndCapabilities() local
980 if ((codec_capability.sample_rate == BTAV_A2DP_CODEC_SAMPLE_RATE_NONE) || in getCodecConfigAndCapabilities()
981 (codec_capability.bits_per_sample == in getCodecConfigAndCapabilities()
983 (codec_capability.channel_mode == BTAV_A2DP_CODEC_CHANNEL_MODE_NONE)) { in getCodecConfigAndCapabilities()
986 codecs_capabilities.push_back(codec_capability); in getCodecConfigAndCapabilities()