Home
last modified time | relevance | path

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

/system/bt/audio_hal_interface/
Da2dp_encoding.cc285 bool a2dp_get_selected_hal_pcm_config(PcmParameters* pcm_config) { in a2dp_get_selected_hal_pcm_config() argument
286 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 …]
Dclient_interface_unittest.cc163 bool IsSoftwarePcmParametersSupported(const PcmParameters& pcm_config) { in IsSoftwarePcmParametersSupported() argument
168 (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() local
280 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 …]
Dhearing_aid_software_encoding.cc216 PcmParameters pcm_config{}; in start_session() local
217 if (!HearingAidGetSelectedHalPcmConfig(&pcm_config)) { in start_session()
221 audio_config.pcmConfig(pcm_config); in start_session()
/system/media/alsa_utils/include/
Dalsa_device_proxy.h27 struct pcm_config alsa_config;
38 struct pcm_config * config);
Dalsa_logging.h24 void log_pcm_config(struct pcm_config * config, const char* label);
Dalsa_device_profile.h53 struct pcm_config default_config;
/system/media/alsa_utils/
Dalsa_logging.c103 void log_pcm_config(struct pcm_config * config, const char* label) { in log_pcm_config()
Dalsa_device_proxy.c47 struct pcm_config * config) in proxy_prepare()
299 struct pcm_config alsa_config; in proxy_scan_rates()
Dalsa_device_profile.c235 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()