Searched refs:pcm_config (Results 1 – 9 of 9) sorted by relevance
285 bool a2dp_get_selected_hal_pcm_config(PcmParameters* pcm_config) { in a2dp_get_selected_hal_pcm_config() argument286 if (pcm_config == nullptr) return false; in a2dp_get_selected_hal_pcm_config()290 *pcm_config = ::bluetooth::audio::BluetoothAudioClientInterface:: in a2dp_get_selected_hal_pcm_config()296 pcm_config->sampleRate = A2dpCodecToHalSampleRate(current_codec); in a2dp_get_selected_hal_pcm_config()297 pcm_config->bitsPerSample = A2dpCodecToHalBitsPerSample(current_codec); in a2dp_get_selected_hal_pcm_config()298 pcm_config->channelMode = A2dpCodecToHalChannelMode(current_codec); in a2dp_get_selected_hal_pcm_config()299 return (pcm_config->sampleRate != SampleRate::RATE_UNKNOWN && in a2dp_get_selected_hal_pcm_config()300 pcm_config->bitsPerSample != BitsPerSample::BITS_UNKNOWN && in a2dp_get_selected_hal_pcm_config()301 pcm_config->channelMode != ChannelMode::UNKNOWN); in a2dp_get_selected_hal_pcm_config()443 PcmParameters pcm_config{}; in setup_codec() local[all …]
163 bool IsSoftwarePcmParametersSupported(const PcmParameters& pcm_config) { in IsSoftwarePcmParametersSupported() argument168 (pcm_config.sampleRate != SampleRate::RATE_UNKNOWN && in IsSoftwarePcmParametersSupported()169 pcm_config.bitsPerSample != BitsPerSample::BITS_UNKNOWN && in IsSoftwarePcmParametersSupported()170 pcm_config.channelMode != ChannelMode::UNKNOWN); in IsSoftwarePcmParametersSupported()172 (pcm_config.sampleRate & pcm_capabilities.sampleRate && in IsSoftwarePcmParametersSupported()173 pcm_config.bitsPerSample & pcm_capabilities.bitsPerSample && in IsSoftwarePcmParametersSupported()174 pcm_config.channelMode & pcm_capabilities.channelMode); in IsSoftwarePcmParametersSupported()278 PcmParameters pcm_config = {}; in TEST_F() local280 pcm_config.sampleRate = sample_rate_pair.hal_sample_rate_; in TEST_F()282 pcm_config.bitsPerSample = bits_per_sample_pair.hal_bits_per_sample_; in TEST_F()[all …]
216 PcmParameters pcm_config{}; in start_session() local217 if (!HearingAidGetSelectedHalPcmConfig(&pcm_config)) { in start_session()221 audio_config.pcmConfig(pcm_config); in start_session()
27 struct pcm_config alsa_config;38 struct pcm_config * config);
24 void log_pcm_config(struct pcm_config * config, const char* label);
53 struct pcm_config default_config;
103 void log_pcm_config(struct pcm_config * config, const char* label) { in log_pcm_config()
47 struct pcm_config * config) in proxy_prepare()299 struct pcm_config alsa_config; in proxy_scan_rates()
235 struct pcm_config config = profile->default_config; in profile_test_sample_rate()335 static int read_alsa_device_config(alsa_device_profile * profile, struct pcm_config * config) in read_alsa_device_config()