/packages/modules/Bluetooth/system/stack/a2dp/ |
D | a2dp_sbc.cc | 858 result->channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in build_codec_config() 862 result->channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in build_codec_config() 880 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in A2dpCodecConfigSbcSource() 883 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in A2dpCodecConfigSbcSource() 886 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in A2dpCodecConfigSbcSource() 889 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in A2dpCodecConfigSbcSource() 1006 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_best_channel_mode() 1011 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_best_channel_mode() 1016 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_best_channel_mode() 1021 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_best_channel_mode() [all …]
|
D | a2dp_vendor_aptx.cc | 450 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in A2dpCodecConfigAptx() 453 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in A2dpCodecConfigAptx() 571 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_best_channel_mode() 576 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_best_channel_mode() 591 switch (p_codec_audio_config->channel_mode) { in select_audio_channel_mode() 595 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_audio_channel_mode() 602 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_audio_channel_mode() 792 codec_config_.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_NONE; in setCodecConfig() 793 switch (codec_user_config_.channel_mode) { in setCodecConfig() 797 codec_capability_.channel_mode = codec_user_config_.channel_mode; in setCodecConfig() [all …]
|
D | a2dp_vendor_aptx_hd.cc | 468 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in A2dpCodecConfigAptxHd() 471 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in A2dpCodecConfigAptxHd() 589 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_best_channel_mode() 594 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_best_channel_mode() 609 switch (p_codec_audio_config->channel_mode) { in select_audio_channel_mode() 613 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_audio_channel_mode() 620 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_audio_channel_mode() 809 codec_config_.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_NONE; in setCodecConfig() 810 switch (codec_user_config_.channel_mode) { in setCodecConfig() 814 codec_capability_.channel_mode = codec_user_config_.channel_mode; in setCodecConfig() [all …]
|
D | a2dp_vendor_ldac.cc | 659 result->channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in build_codec_config() 662 result->channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in build_codec_config() 693 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in A2dpCodecConfigLdacSource() 696 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in A2dpCodecConfigLdacSource() 699 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in A2dpCodecConfigLdacSource() 895 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_best_channel_mode() 900 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_best_channel_mode() 905 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_best_channel_mode() 920 switch (p_codec_audio_config->channel_mode) { in select_audio_channel_mode() 924 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_audio_channel_mode() [all …]
|
D | a2dp_vendor_opus.cc | 692 result->channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in build_codec_config() 694 result->channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in build_codec_config() 715 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in A2dpCodecConfigOpusSource() 718 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in A2dpCodecConfigOpusSource() 854 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_best_channel_mode() 859 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_best_channel_mode() 874 switch (p_codec_audio_config->channel_mode) { in select_audio_channel_mode() 878 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_audio_channel_mode() 885 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_audio_channel_mode() 915 device_codec_config_.channel_mode); in setCodecConfig() [all …]
|
D | a2dp_aac.cc | 765 result->channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in build_codec_config() 767 result->channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in build_codec_config() 792 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in A2dpCodecConfigAacSource() 795 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in A2dpCodecConfigAacSource() 969 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_best_channel_mode() 974 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_best_channel_mode() 989 switch (p_codec_audio_config->channel_mode) { in select_audio_channel_mode() 993 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_audio_channel_mode() 1000 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_audio_channel_mode() 1267 codec_config_.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_NONE; in setCodecConfig() [all …]
|
D | a2dp_vendor_ldac_decoder.cc | 67 int32_t channel_mode); 85 uint8_t channel_mode; member 250 int32_t channel_mode; in a2dp_vendor_ldac_decoder_configure() local 260 channel_mode = A2DP_VendorGetChannelModeCodeLdac(p_codec_info); in a2dp_vendor_ldac_decoder_configure() 263 sample_rate, bits_per_sample, channel_mode); in a2dp_vendor_ldac_decoder_configure() 267 bits_per_sample, channel_mode); in a2dp_vendor_ldac_decoder_configure()
|
D | a2dp_vendor_ldac_encoder.cc | 59 uint8_t channel_mode; member 219 p_encoder_params->channel_mode = in a2dp_vendor_ldac_encoder_update() 308 __func__, p_encoder_params->sample_rate, p_encoder_params->channel_mode, in a2dp_vendor_ldac_encoder_update() 317 p_encoder_params->channel_mode, p_encoder_params->pcm_fmt, in a2dp_vendor_ldac_encoder_update()
|
D | a2dp_vendor_opus_encoder.cc | 39 uint8_t channel_mode; member 234 p_encoder_params->channel_mode = in a2dp_vendor_opus_encoder_update() 376 p_encoder_params->channel_mode]; in a2dp_opus_encode_frames()
|
D | a2dp_codec_config.cc | 344 (codec_config.channel_mode == BTAV_A2DP_CODEC_CHANNEL_MODE_NONE) && in isCodecConfigEmpty() 389 (saved_codec_config.channel_mode != new_codec_config.channel_mode)) { in setCodecUserConfig() 412 (codec_config.channel_mode != BTAV_A2DP_CODEC_CHANNEL_MODE_NONE); in codecConfigIsValid() 426 result.append(codecChannelMode2Str(codec_config.channel_mode)); in codecConfig2Str() 1002 (codec_capability.channel_mode == BTAV_A2DP_CODEC_CHANNEL_MODE_NONE)) { in getCodecConfigAndCapabilities()
|
/packages/modules/Bluetooth/system/btif/src/ |
D | btif_a2dp_control.cc | 160 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_NONE; in btif_a2dp_control_on_get_output_audio_config() 163 codec_capability.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_NONE; in btif_a2dp_control_on_get_output_audio_config() 180 reinterpret_cast<const uint8_t*>(&codec_config.channel_mode), in btif_a2dp_control_on_get_output_audio_config() 190 reinterpret_cast<const uint8_t*>(&codec_capability.channel_mode), in btif_a2dp_control_on_get_output_audio_config() 198 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_NONE; in btif_a2dp_control_on_set_output_audio_config() 218 reinterpret_cast<uint8_t*>(&codec_config.channel_mode), in btif_a2dp_control_on_set_output_audio_config() 229 codec_config.channel_mode); in btif_a2dp_control_on_set_output_audio_config()
|
/packages/modules/Bluetooth/system/bta/hearing_aid/ |
D | hearing_aid_audio_source.cc | 243 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in hearing_aid_recv_ctrl_data() 244 codec_capability.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in hearing_aid_recv_ctrl_data() 255 reinterpret_cast<const uint8_t*>(&codec_config.channel_mode), in hearing_aid_recv_ctrl_data() 267 reinterpret_cast<const uint8_t*>(&codec_capability.channel_mode), in hearing_aid_recv_ctrl_data() 277 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_NONE; in hearing_aid_recv_ctrl_data() 297 reinterpret_cast<uint8_t*>(&codec_config.channel_mode), in hearing_aid_recv_ctrl_data() 308 codec_config.channel_mode); in hearing_aid_recv_ctrl_data()
|
/packages/modules/Bluetooth/system/include/hardware/ |
D | bt_av.h | 145 btav_a2dp_codec_channel_mode_t channel_mode; member 237 (channel_mode == BTAV_A2DP_CODEC_CHANNEL_MODE_NONE), in ToString() 240 (channel_mode & BTAV_A2DP_CODEC_CHANNEL_MODE_MONO), in ToString() 243 (channel_mode & BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO), in ToString()
|
/packages/modules/Bluetooth/system/gd/rust/topshim/btav/ |
D | btav_shim.cc | 189 .channel_mode = static_cast<uint8_t>(config.channel_mode), in to_rust_codec_config() 203 .channel_mode = static_cast<btav_a2dp_codec_channel_mode_t>(rconfig.channel_mode), in from_rust_codec_config() 309 .channel_mode = static_cast<btav_a2dp_codec_channel_mode_t>(rconfig.channel_mode), in set_audio_config()
|
/packages/modules/Bluetooth/system/audio_hearing_aid_hw/src/ |
D | audio_hearing_aid_hw.cc | 557 if (ha_ctrl_receive(common, &codec_config->channel_mode, in ha_read_output_audio_config() 571 if (ha_ctrl_receive(common, &codec_capability->channel_mode, in ha_read_output_audio_config() 626 switch (codec_config->channel_mode) { in ha_read_output_audio_config() 637 ERROR("Invalid channel mode: 0x%x", codec_config->channel_mode); in ha_read_output_audio_config() 652 codec_config->channel_mode); in ha_read_output_audio_config() 663 codec_config->bits_per_sample, codec_config->channel_mode); in ha_read_output_audio_config() 669 codec_capability->channel_mode); in ha_read_output_audio_config() 684 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_NONE; in ha_write_output_audio_config() 736 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in ha_write_output_audio_config() 740 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in ha_write_output_audio_config() [all …]
|
/packages/modules/Bluetooth/system/audio_a2dp_hw/src/ |
D | audio_a2dp_hw.cc | 554 if (a2dp_ctrl_receive(common, &codec_config->channel_mode, in a2dp_read_output_audio_config() 568 if (a2dp_ctrl_receive(common, &codec_capability->channel_mode, in a2dp_read_output_audio_config() 617 switch (codec_config->channel_mode) { in a2dp_read_output_audio_config() 628 ERROR("Invalid channel mode: 0x%x", codec_config->channel_mode); in a2dp_read_output_audio_config() 643 codec_config->channel_mode); in a2dp_read_output_audio_config() 654 codec_config->bits_per_sample, codec_config->channel_mode); in a2dp_read_output_audio_config() 660 codec_capability->channel_mode); in a2dp_read_output_audio_config() 675 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_NONE; in a2dp_write_output_audio_config() 721 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in a2dp_write_output_audio_config() 725 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in a2dp_write_output_audio_config() [all …]
|
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/ |
D | codec_status_aidl.cc | 212 switch (a2dp_codec_config.channel_mode) { in A2dpCodecToHalChannelMode() 239 uint8_t channel_mode = a2dp_offload.codec_info[3] & A2DP_SBC_IE_CH_MD_MSK; in A2dpSbcToHalConfig() local 240 switch (channel_mode) { in A2dpSbcToHalConfig() 254 LOG(ERROR) << __func__ << ": Unknown SBC channel_mode=" << channel_mode; in A2dpSbcToHalConfig() 351 << ": Unknown AAC channel_mode=" << current_codec.channel_mode; in A2dpAacToHalConfig() 402 << ": Unknown aptX channel_mode=" << current_codec.channel_mode; in A2dpAptxToHalConfig() 504 << ": Unknown Opus channel_mode=" << current_codec.channel_mode; in A2dpOpusToHalConfig()
|
/packages/modules/Bluetooth/system/audio_hal_interface/hidl/ |
D | codec_status_hidl.cc | 205 switch (a2dp_codec_config.channel_mode) { in A2dpCodecToHalChannelMode() 234 uint8_t channel_mode = a2dp_offload.codec_info[3] & A2DP_SBC_IE_CH_MD_MSK; in A2dpSbcToHalConfig() local 235 switch (channel_mode) { in A2dpSbcToHalConfig() 249 LOG(ERROR) << __func__ << ": Unknown SBC channel_mode=" << channel_mode; in A2dpSbcToHalConfig() 347 << ": Unknown AAC channel_mode=" << current_codec.channel_mode; in A2dpAacToHalConfig() 399 << ": Unknown aptX channel_mode=" << current_codec.channel_mode; in A2dpAptxToHalConfig()
|
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/ |
D | a2dp.rs | 158 pub channel_mode: i32, field 244 channel_mode: 0, in default() 367 pub fn set_audio_config(&self, sample_rate: i32, bits_per_sample: i32, channel_mode: i32) { in set_audio_config() 369 A2dpCodecConfig { sample_rate, bits_per_sample, channel_mode, ..Default::default() }; in set_audio_config()
|
/packages/modules/Bluetooth/system/audio_hal_interface/ |
D | a2dp_encoding_host.cc | 111 codec_config.channel_mode = config.channel_mode; in SetAudioConfig()
|
/packages/modules/Bluetooth/system/audio_bluetooth_hw/ |
D | device_port_proxy.cc | 51 audio_channel_mask_t OutputChannelModeToAudioFormat(ChannelMode channel_mode) { in OutputChannelModeToAudioFormat() argument 52 switch (channel_mode) { in OutputChannelModeToAudioFormat() 62 audio_channel_mask_t InputChannelModeToAudioFormat(ChannelMode channel_mode) { in InputChannelModeToAudioFormat() argument 63 switch (channel_mode) { in InputChannelModeToAudioFormat()
|
D | device_port_proxy_hidl.cc | 78 audio_channel_mask_t OutputChannelModeToAudioFormat(ChannelMode channel_mode) { in OutputChannelModeToAudioFormat() argument 79 switch (channel_mode) { in OutputChannelModeToAudioFormat() 89 audio_channel_mask_t InputChannelModeToAudioFormat(ChannelMode channel_mode) { in InputChannelModeToAudioFormat() argument 90 switch (channel_mode) { in InputChannelModeToAudioFormat()
|
/packages/modules/Bluetooth/framework/tests/unit/src/android/bluetooth/ |
D | BluetoothCodecConfigTest.java | 183 int channel_mode = selectChannelMode(config_id); in testBluetoothCodecConfig_valid_get_methods() local 191 channel_mode, codec_specific1, in testBluetoothCodecConfig_valid_get_methods() 227 assertEquals(channel_mode, bcc.getChannelMode()); in testBluetoothCodecConfig_valid_get_methods()
|
/packages/modules/Bluetooth/android/app/jni/ |
D | com_android_bluetooth_a2dp.cpp | 112 (jint)codec_config.channel_mode, (jlong)codec_config.codec_specific_1, in bta2dp_audio_config_callback() 126 (jint)cap.bits_per_sample, (jint)cap.channel_mode, in bta2dp_audio_config_callback() 142 (jint)cap.bits_per_sample, (jint)cap.channel_mode, in bta2dp_audio_config_callback() 275 .channel_mode = in prepareCodecPreferences()
|
/packages/modules/Bluetooth/system/gd/rust/linux/service/src/ |
D | iface_bluetooth_media.rs | 30 channel_mode: i32, field 193 channel_mode: i32, in set_audio_config()
|