Home
last modified time | relevance | path

Searched refs:pcm_config (Results 1 – 17 of 17) sorted by relevance

/packages/modules/Bluetooth/system/audio_hal_interface/hidl/
Dclient_interface_hidl_unittest.cc235 bool IsSoftwarePcmParametersSupported(const PcmParameters& pcm_config) { in IsSoftwarePcmParametersSupported() argument
240 (pcm_config.sampleRate != SampleRate::RATE_UNKNOWN && in IsSoftwarePcmParametersSupported()
241 pcm_config.bitsPerSample != BitsPerSample::BITS_UNKNOWN && in IsSoftwarePcmParametersSupported()
242 pcm_config.channelMode != ChannelMode::UNKNOWN); in IsSoftwarePcmParametersSupported()
244 (pcm_config.sampleRate & pcm_capabilities.sampleRate && in IsSoftwarePcmParametersSupported()
245 pcm_config.bitsPerSample & pcm_capabilities.bitsPerSample && in IsSoftwarePcmParametersSupported()
246 pcm_config.channelMode & pcm_capabilities.channelMode); in IsSoftwarePcmParametersSupported()
251 const PcmParameters_2_1& pcm_config) { in IsSinkSoftwarePcmParameters_2_1_Supported() argument
252 return IsSoftwarePcmParameters_2_1_Supported(pcm_config, clientif_sink_); in IsSinkSoftwarePcmParameters_2_1_Supported()
256 const PcmParameters_2_1& pcm_config) { in IsSourceSoftwarePcmParameters_2_1_Supported() argument
[all …]
Da2dp_encoding_hidl.cc311 bool a2dp_get_selected_hal_pcm_config(PcmParameters* pcm_config) { in a2dp_get_selected_hal_pcm_config() argument
312 if (pcm_config == nullptr) return false; in a2dp_get_selected_hal_pcm_config()
316 *pcm_config = BluetoothAudioSinkClientInterface::kInvalidPcmConfiguration; in a2dp_get_selected_hal_pcm_config()
321 pcm_config->sampleRate = A2dpCodecToHalSampleRate(current_codec); in a2dp_get_selected_hal_pcm_config()
322 pcm_config->bitsPerSample = A2dpCodecToHalBitsPerSample(current_codec); in a2dp_get_selected_hal_pcm_config()
323 pcm_config->channelMode = A2dpCodecToHalChannelMode(current_codec); in a2dp_get_selected_hal_pcm_config()
324 return (pcm_config->sampleRate != SampleRate::RATE_UNKNOWN && in a2dp_get_selected_hal_pcm_config()
325 pcm_config->bitsPerSample != BitsPerSample::BITS_UNKNOWN && in a2dp_get_selected_hal_pcm_config()
326 pcm_config->channelMode != ChannelMode::UNKNOWN); in a2dp_get_selected_hal_pcm_config()
467 PcmParameters pcm_config{}; in setup_codec() local
[all …]
Dhearing_aid_software_encoding_hidl.cc230 PcmParameters pcm_config{}; in start_session() local
231 if (!HearingAidGetSelectedHalPcmConfig(&pcm_config)) { in start_session()
235 audio_config.pcmConfig(pcm_config); in start_session()
Dle_audio_software_hidl.cc105 PcmParameters pcm_config) in LeAudioTransport() argument
111 pcm_config_(std::move(pcm_config)),
Dle_audio_software_hidl.h60 PcmParameters pcm_config);
/packages/modules/Bluetooth/system/bta/le_audio/
Dcodec_interface.cc39 const LeAudioCodecConfiguration& pcm_config, in InitEncoder()
49 pcm_config_ = pcm_config; in InitEncoder()
73 const LeAudioCodecConfiguration& pcm_config) { in InitDecoder()
82 pcm_config_ = pcm_config; in InitDecoder()
268 const LeAudioCodecConfiguration& pcm_config, in InitEncoder() argument
270 return impl->InitEncoder(pcm_config, codec_config); in InitEncoder()
274 const LeAudioCodecConfiguration& pcm_config) { in InitDecoder() argument
275 return impl->InitDecoder(codec_config, pcm_config); in InitDecoder()
Dmock_codec_interface.cc38 const LeAudioCodecConfiguration& pcm_config, in InitEncoder() argument
40 return impl->InitEncoder(pcm_config, codec_config); in InitEncoder()
44 const LeAudioCodecConfiguration& pcm_config) { in InitDecoder() argument
45 return impl->InitDecoder(codec_config, pcm_config); in InitDecoder()
Dmock_codec_interface.h35 (const bluetooth::le_audio::LeAudioCodecConfiguration& pcm_config,
40 const bluetooth::le_audio::LeAudioCodecConfiguration& pcm_config));
Dcodec_interface.h57 const LeAudioCodecConfiguration& pcm_config,
61 const LeAudioCodecConfiguration& pcm_config);
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Da2dp_encoding_aidl.cc366 bool a2dp_get_selected_hal_pcm_config(PcmConfiguration* pcm_config) { in a2dp_get_selected_hal_pcm_config() argument
367 if (pcm_config == nullptr) return false; in a2dp_get_selected_hal_pcm_config()
371 *pcm_config = BluetoothAudioSinkClientInterface::kInvalidPcmConfiguration; in a2dp_get_selected_hal_pcm_config()
376 pcm_config->sampleRateHz = A2dpCodecToHalSampleRate(current_codec); in a2dp_get_selected_hal_pcm_config()
377 pcm_config->bitsPerSample = A2dpCodecToHalBitsPerSample(current_codec); in a2dp_get_selected_hal_pcm_config()
378 pcm_config->channelMode = A2dpCodecToHalChannelMode(current_codec); in a2dp_get_selected_hal_pcm_config()
379 return (pcm_config->sampleRateHz > 0 && pcm_config->bitsPerSample > 0 && in a2dp_get_selected_hal_pcm_config()
380 pcm_config->channelMode != ChannelMode::UNKNOWN); in a2dp_get_selected_hal_pcm_config()
598 PcmConfiguration pcm_config{}; in setup_codec() local
599 if (!a2dp_get_selected_hal_pcm_config(&pcm_config)) { in setup_codec()
[all …]
Dhearing_aid_software_encoding_aidl.cc241 PcmConfiguration pcm_config{}; in start_session() local
242 if (!HearingAidGetSelectedHalPcmConfig(&pcm_config)) { in start_session()
246 audio_config.set<AudioConfiguration::pcmConfig>(pcm_config); in start_session()
Dle_audio_software_aidl.h71 PcmConfiguration pcm_config);
Dle_audio_software_aidl.cc66 PcmConfiguration pcm_config) in LeAudioTransport() argument
72 pcm_config_(std::move(pcm_config)),
/packages/modules/Bluetooth/system/audio_hal_interface/
Dle_audio_software_host.cc113 btle_pcm_parameters pcm_config = { in GetHostPcmConfig() local
120 return pcm_config; in GetHostPcmConfig()
154 btle_pcm_parameters pcm_config = { in GetPeerPcmConfig() local
161 return pcm_config; in GetPeerPcmConfig()
Dle_audio_software_host_transport.cc30 PcmParameters pcm_config) in LeAudioTransport() argument
36 pcm_config_(std::move(pcm_config)),
Dle_audio_software_host_transport.h43 PcmParameters pcm_config);
Dhfp_client_interface.cc61 PcmConfiguration pcm_config{ in get_default_pcm_configuration() local
67 return pcm_config; in get_default_pcm_configuration()