Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/audio_hal_interface/hidl/
Dclient_interface_hidl_unittest.cc233 bool IsSoftwarePcmParametersSupported(const PcmParameters& pcm_config) { in IsSoftwarePcmParametersSupported() argument
238 (pcm_config.sampleRate != SampleRate::RATE_UNKNOWN && in IsSoftwarePcmParametersSupported()
239 pcm_config.bitsPerSample != BitsPerSample::BITS_UNKNOWN && in IsSoftwarePcmParametersSupported()
240 pcm_config.channelMode != ChannelMode::UNKNOWN); in IsSoftwarePcmParametersSupported()
242 (pcm_config.sampleRate & pcm_capabilities.sampleRate && in IsSoftwarePcmParametersSupported()
243 pcm_config.bitsPerSample & pcm_capabilities.bitsPerSample && in IsSoftwarePcmParametersSupported()
244 pcm_config.channelMode & pcm_capabilities.channelMode); in IsSoftwarePcmParametersSupported()
249 const PcmParameters_2_1& pcm_config) { in IsSinkSoftwarePcmParameters_2_1_Supported() argument
250 return IsSoftwarePcmParameters_2_1_Supported(pcm_config, clientif_sink_); in IsSinkSoftwarePcmParameters_2_1_Supported()
254 const PcmParameters_2_1& pcm_config) { in IsSourceSoftwarePcmParameters_2_1_Supported() argument
[all …]
Da2dp_encoding_hidl.cc299 bool a2dp_get_selected_hal_pcm_config(PcmParameters* pcm_config) { in a2dp_get_selected_hal_pcm_config() argument
300 if (pcm_config == nullptr) return false; in a2dp_get_selected_hal_pcm_config()
304 *pcm_config = BluetoothAudioSinkClientInterface::kInvalidPcmConfiguration; in a2dp_get_selected_hal_pcm_config()
309 pcm_config->sampleRate = A2dpCodecToHalSampleRate(current_codec); in a2dp_get_selected_hal_pcm_config()
310 pcm_config->bitsPerSample = A2dpCodecToHalBitsPerSample(current_codec); in a2dp_get_selected_hal_pcm_config()
311 pcm_config->channelMode = A2dpCodecToHalChannelMode(current_codec); in a2dp_get_selected_hal_pcm_config()
312 return (pcm_config->sampleRate != SampleRate::RATE_UNKNOWN && in a2dp_get_selected_hal_pcm_config()
313 pcm_config->bitsPerSample != BitsPerSample::BITS_UNKNOWN && in a2dp_get_selected_hal_pcm_config()
314 pcm_config->channelMode != ChannelMode::UNKNOWN); in a2dp_get_selected_hal_pcm_config()
457 PcmParameters pcm_config{}; in setup_codec() local
[all …]
Dhearing_aid_software_encoding_hidl.cc221 PcmParameters pcm_config{}; in start_session() local
222 if (!HearingAidGetSelectedHalPcmConfig(&pcm_config)) { in start_session()
226 audio_config.pcmConfig(pcm_config); in start_session()
Dle_audio_software_hidl.cc102 PcmParameters pcm_config) in LeAudioTransport() argument
108 pcm_config_(std::move(pcm_config)),
Dle_audio_software_hidl.h60 PcmParameters pcm_config);
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Da2dp_encoding_aidl.cc313 bool a2dp_get_selected_hal_pcm_config(PcmConfiguration* pcm_config) { in a2dp_get_selected_hal_pcm_config() argument
314 if (pcm_config == nullptr) return false; in a2dp_get_selected_hal_pcm_config()
318 *pcm_config = BluetoothAudioSinkClientInterface::kInvalidPcmConfiguration; in a2dp_get_selected_hal_pcm_config()
323 pcm_config->sampleRateHz = A2dpCodecToHalSampleRate(current_codec); in a2dp_get_selected_hal_pcm_config()
324 pcm_config->bitsPerSample = A2dpCodecToHalBitsPerSample(current_codec); in a2dp_get_selected_hal_pcm_config()
325 pcm_config->channelMode = A2dpCodecToHalChannelMode(current_codec); in a2dp_get_selected_hal_pcm_config()
326 return (pcm_config->sampleRateHz > 0 && pcm_config->bitsPerSample > 0 && in a2dp_get_selected_hal_pcm_config()
327 pcm_config->channelMode != ChannelMode::UNKNOWN); in a2dp_get_selected_hal_pcm_config()
473 PcmConfiguration pcm_config{}; in setup_codec() local
474 if (!a2dp_get_selected_hal_pcm_config(&pcm_config)) { in setup_codec()
[all …]
Dhearing_aid_software_encoding_aidl.cc233 PcmConfiguration pcm_config{}; in start_session() local
234 if (!HearingAidGetSelectedHalPcmConfig(&pcm_config)) { in start_session()
238 audio_config.set<AudioConfiguration::pcmConfig>(pcm_config); in start_session()
Dle_audio_software_aidl.cc62 PcmConfiguration pcm_config) in LeAudioTransport() argument
68 pcm_config_(std::move(pcm_config)),
Dle_audio_software_aidl.h74 PcmConfiguration pcm_config);