Home
last modified time | relevance | path

Searched refs:channel_mode (Results 1 – 25 of 44) sorted by relevance

12

/packages/modules/Bluetooth/system/stack/a2dp/
Da2dp_sbc.cc853 result->channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in build_codec_config()
857 result->channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in build_codec_config()
875 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in A2dpCodecConfigSbcSource()
878 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in A2dpCodecConfigSbcSource()
881 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in A2dpCodecConfigSbcSource()
884 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in A2dpCodecConfigSbcSource()
1001 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_best_channel_mode()
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_MONO; in select_best_channel_mode()
[all …]
Da2dp_vendor_aptx_hd.cc464 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in A2dpCodecConfigAptxHd()
467 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in A2dpCodecConfigAptxHd()
585 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_best_channel_mode()
590 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_best_channel_mode()
605 switch (p_codec_audio_config->channel_mode) { in select_audio_channel_mode()
609 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_audio_channel_mode()
616 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_audio_channel_mode()
802 codec_config_.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_NONE; in setCodecConfig()
803 switch (codec_user_config_.channel_mode) { in setCodecConfig()
807 codec_capability_.channel_mode = codec_user_config_.channel_mode; in setCodecConfig()
[all …]
Da2dp_vendor_aptx.cc441 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in A2dpCodecConfigAptx()
444 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in A2dpCodecConfigAptx()
562 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_best_channel_mode()
567 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_best_channel_mode()
582 switch (p_codec_audio_config->channel_mode) { in select_audio_channel_mode()
586 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_audio_channel_mode()
593 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_audio_channel_mode()
781 codec_config_.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_NONE; in setCodecConfig()
782 switch (codec_user_config_.channel_mode) { in setCodecConfig()
786 codec_capability_.channel_mode = codec_user_config_.channel_mode; in setCodecConfig()
[all …]
Da2dp_vendor_ldac.cc654 result->channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in build_codec_config()
657 result->channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in build_codec_config()
688 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in A2dpCodecConfigLdacSource()
691 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in A2dpCodecConfigLdacSource()
694 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in A2dpCodecConfigLdacSource()
890 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_best_channel_mode()
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_MONO; in select_best_channel_mode()
915 switch (p_codec_audio_config->channel_mode) { in select_audio_channel_mode()
919 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_audio_channel_mode()
[all …]
Da2dp_vendor_opus.cc685 result->channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in build_codec_config()
687 result->channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in build_codec_config()
708 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in A2dpCodecConfigOpusSource()
711 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in A2dpCodecConfigOpusSource()
847 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_best_channel_mode()
852 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_best_channel_mode()
867 switch (p_codec_audio_config->channel_mode) { in select_audio_channel_mode()
871 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_audio_channel_mode()
878 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_audio_channel_mode()
907 device_codec_config_.channel_mode); in setCodecConfig()
[all …]
Da2dp_aac.cc760 result->channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in build_codec_config()
762 result->channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in build_codec_config()
787 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in A2dpCodecConfigAacSource()
790 codec_local_capability_.channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in A2dpCodecConfigAacSource()
964 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_best_channel_mode()
969 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_best_channel_mode()
984 switch (p_codec_audio_config->channel_mode) { in select_audio_channel_mode()
988 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in select_audio_channel_mode()
995 p_codec_config->channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in select_audio_channel_mode()
1261 codec_config_.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_NONE; in setCodecConfig()
[all …]
Da2dp_vendor_ldac_decoder.cc70 int32_t channel_mode);
84 uint8_t channel_mode; member
249 int32_t channel_mode; in a2dp_vendor_ldac_decoder_configure() local
259 channel_mode = A2DP_VendorGetChannelModeCodeLdac(p_codec_info); in a2dp_vendor_ldac_decoder_configure()
262 sample_rate, bits_per_sample, channel_mode); in a2dp_vendor_ldac_decoder_configure()
266 bits_per_sample, channel_mode); in a2dp_vendor_ldac_decoder_configure()
Da2dp_vendor_ldac_encoder.cc61 uint8_t channel_mode; member
218 p_encoder_params->channel_mode = in a2dp_vendor_ldac_encoder_update()
299 p_encoder_params->sample_rate, p_encoder_params->channel_mode, in a2dp_vendor_ldac_encoder_update()
308 p_encoder_params->channel_mode, p_encoder_params->pcm_fmt, in a2dp_vendor_ldac_encoder_update()
Da2dp_vendor_opus_encoder.cc40 uint8_t channel_mode; member
229 p_encoder_params->channel_mode = in a2dp_vendor_opus_encoder_update()
371 p_encoder_params->channel_mode]; in a2dp_opus_encode_frames()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_a2dp_control.cc166 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_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()
186 reinterpret_cast<const uint8_t*>(&codec_config.channel_mode), 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()
204 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_NONE; in btif_a2dp_control_on_set_output_audio_config()
223 reinterpret_cast<uint8_t*>(&codec_config.channel_mode), in btif_a2dp_control_on_set_output_audio_config()
233 codec_config.channel_mode); in btif_a2dp_control_on_set_output_audio_config()
/packages/modules/Bluetooth/system/bta/hearing_aid/
Dhearing_aid_audio_source.cc251 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in hearing_aid_recv_ctrl_data()
252 codec_capability.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in hearing_aid_recv_ctrl_data()
263 reinterpret_cast<const uint8_t*>(&codec_config.channel_mode), in hearing_aid_recv_ctrl_data()
275 reinterpret_cast<const uint8_t*>(&codec_capability.channel_mode), in hearing_aid_recv_ctrl_data()
285 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_NONE; in hearing_aid_recv_ctrl_data()
305 reinterpret_cast<uint8_t*>(&codec_config.channel_mode), in hearing_aid_recv_ctrl_data()
316 codec_config.channel_mode); in hearing_aid_recv_ctrl_data()
/packages/modules/Bluetooth/system/gd/rust/topshim/btav/
Dbtav_shim.cc189 .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()
310 .channel_mode = static_cast<btav_a2dp_codec_channel_mode_t>(rconfig.channel_mode), in set_audio_config()
/packages/modules/Bluetooth/system/include/hardware/
Dbt_av.h165 btav_a2dp_codec_channel_mode_t channel_mode; member
249 (channel_mode == BTAV_A2DP_CODEC_CHANNEL_MODE_NONE), in ToString()
252 (channel_mode & BTAV_A2DP_CODEC_CHANNEL_MODE_MONO), in ToString()
255 (channel_mode & BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO), in ToString()
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Dcodec_status_aidl.cc215 switch (a2dp_codec_config.channel_mode) { in A2dpCodecToHalChannelMode()
241 uint8_t channel_mode = a2dp_offload.codec_info[3] & A2DP_SBC_IE_CH_MD_MSK; in A2dpSbcToHalConfig() local
242 switch (channel_mode) { in A2dpSbcToHalConfig()
256 log::error("Unknown SBC channel_mode={}", channel_mode); in A2dpSbcToHalConfig()
350 log::error("Unknown AAC channel_mode={}", current_codec.channel_mode); in A2dpAacToHalConfig()
398 log::error("Unknown aptX channel_mode={}", current_codec.channel_mode); in A2dpAptxToHalConfig()
495 log::error("Unknown Opus channel_mode={}", current_codec.channel_mode); in A2dpOpusToHalConfig()
Da2dp_provider_info.cc409 for (auto const& channel_mode : transport.channelMode) { in CodecCapabilities() local
410 switch (channel_mode) { in CodecCapabilities()
412 codec_config->channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in CodecCapabilities()
415 codec_config->channel_mode |= BTAV_A2DP_CODEC_CHANNEL_MODE_STEREO; in CodecCapabilities()
Da2dp_encoding_aidl.cc764 ChannelMode channel_mode) { in convert_channel_mode() argument
765 switch (channel_mode) { in convert_channel_mode()
883 switch (user_preferences.channel_mode) { in get_a2dp_configuration()
969 a2dp_configuration.codec_parameters.channel_mode = in get_a2dp_configuration()
1015 codec_parameters->channel_mode = in parse_a2dp_configuration()
/packages/modules/Bluetooth/system/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc555 if (ha_ctrl_receive(common, &codec_config->channel_mode, in ha_read_output_audio_config()
569 if (ha_ctrl_receive(common, &codec_capability->channel_mode, in ha_read_output_audio_config()
624 switch (codec_config->channel_mode) { in ha_read_output_audio_config()
635 ERROR("Invalid channel mode: 0x%x", codec_config->channel_mode); in ha_read_output_audio_config()
650 codec_config->channel_mode); in ha_read_output_audio_config()
661 codec_config->bits_per_sample, codec_config->channel_mode); in ha_read_output_audio_config()
667 codec_capability->channel_mode); in ha_read_output_audio_config()
682 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_NONE; in ha_write_output_audio_config()
734 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in ha_write_output_audio_config()
738 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/
Daudio_a2dp_hw.cc552 if (a2dp_ctrl_receive(common, &codec_config->channel_mode, in a2dp_read_output_audio_config()
566 if (a2dp_ctrl_receive(common, &codec_capability->channel_mode, in a2dp_read_output_audio_config()
615 switch (codec_config->channel_mode) { in a2dp_read_output_audio_config()
626 ERROR("Invalid channel mode: 0x%x", codec_config->channel_mode); in a2dp_read_output_audio_config()
641 codec_config->channel_mode); in a2dp_read_output_audio_config()
652 codec_config->bits_per_sample, codec_config->channel_mode); in a2dp_read_output_audio_config()
658 codec_capability->channel_mode); in a2dp_read_output_audio_config()
673 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_NONE; in a2dp_write_output_audio_config()
719 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in a2dp_write_output_audio_config()
723 codec_config.channel_mode = BTAV_A2DP_CODEC_CHANNEL_MODE_MONO; in a2dp_write_output_audio_config()
[all …]
/packages/modules/Bluetooth/system/audio_hal_interface/hidl/
Dcodec_status_hidl.cc211 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("Unknown SBC channel_mode={}", channel_mode); in A2dpSbcToHalConfig()
349 log::error("Unknown AAC channel_mode={}", current_codec.channel_mode); in A2dpAacToHalConfig()
398 log::error("Unknown aptX channel_mode={}", current_codec.channel_mode); in A2dpAptxToHalConfig()
/packages/modules/Bluetooth/system/audio_hal_interface/
Da2dp_encoding_host.cc116 codec_config.channel_mode = config.channel_mode; in SetAudioConfig()
Da2dp_encoding_host.h33 btav_a2dp_codec_channel_mode_t channel_mode = member
/packages/modules/Bluetooth/system/audio_bluetooth_hw/
Ddevice_port_proxy_hidl.cc77 audio_channel_mask_t OutputChannelModeToAudioFormat(ChannelMode channel_mode) { in OutputChannelModeToAudioFormat() argument
78 switch (channel_mode) { in OutputChannelModeToAudioFormat()
88 audio_channel_mask_t InputChannelModeToAudioFormat(ChannelMode channel_mode) { in InputChannelModeToAudioFormat() argument
89 switch (channel_mode) { in InputChannelModeToAudioFormat()
Ddevice_port_proxy.cc55 audio_channel_mask_t OutputChannelModeToAudioFormat(ChannelMode channel_mode) { in OutputChannelModeToAudioFormat() argument
56 switch (channel_mode) { in OutputChannelModeToAudioFormat()
66 audio_channel_mask_t InputChannelModeToAudioFormat(ChannelMode channel_mode) { in InputChannelModeToAudioFormat() argument
67 switch (channel_mode) { in InputChannelModeToAudioFormat()
/packages/modules/Bluetooth/system/gd/l2cap/classic/
Ddynamic_channel_configuration_option.h39 RetransmissionAndFlowControlMode channel_mode = RetransmissionAndFlowControlMode::L2CAP_BASIC; member
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_a2dp.cpp118 (jint)codec_config.channel_mode, (jlong)codec_config.codec_specific_1, in bta2dp_audio_config_callback()
132 (jint)cap.bits_per_sample, (jint)cap.channel_mode, in bta2dp_audio_config_callback()
148 (jint)cap.bits_per_sample, (jint)cap.channel_mode, in bta2dp_audio_config_callback()
239 .channel_mode = in prepareCodecPreferences()

12