Searched refs:pcm_config (Results 1 – 9 of 9) sorted by relevance
233 bool IsSoftwarePcmParametersSupported(const PcmParameters& pcm_config) { in IsSoftwarePcmParametersSupported() argument238 (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() argument250 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 …]
299 bool a2dp_get_selected_hal_pcm_config(PcmParameters* pcm_config) { in a2dp_get_selected_hal_pcm_config() argument300 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 …]
221 PcmParameters pcm_config{}; in start_session() local222 if (!HearingAidGetSelectedHalPcmConfig(&pcm_config)) { in start_session()226 audio_config.pcmConfig(pcm_config); in start_session()
102 PcmParameters pcm_config) in LeAudioTransport() argument108 pcm_config_(std::move(pcm_config)),
60 PcmParameters pcm_config);
313 bool a2dp_get_selected_hal_pcm_config(PcmConfiguration* pcm_config) { in a2dp_get_selected_hal_pcm_config() argument314 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() local474 if (!a2dp_get_selected_hal_pcm_config(&pcm_config)) { in setup_codec()[all …]
233 PcmConfiguration pcm_config{}; in start_session() local234 if (!HearingAidGetSelectedHalPcmConfig(&pcm_config)) { in start_session()238 audio_config.set<AudioConfiguration::pcmConfig>(pcm_config); in start_session()
62 PcmConfiguration pcm_config) in LeAudioTransport() argument68 pcm_config_(std::move(pcm_config)),
74 PcmConfiguration pcm_config);