Home
last modified time | relevance | path

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

/system/bt/audio_hal_interface/
Dclient_interface_unittest.cc108 bool IsSoftwarePcmParametersSupported(const PcmParameters& pcm_config) { in IsSoftwarePcmParametersSupported() argument
113 (pcm_config.sampleRate != SampleRate::RATE_UNKNOWN && in IsSoftwarePcmParametersSupported()
114 pcm_config.bitsPerSample != BitsPerSample::BITS_UNKNOWN && in IsSoftwarePcmParametersSupported()
115 pcm_config.channelMode != ChannelMode::UNKNOWN); in IsSoftwarePcmParametersSupported()
117 (pcm_config.sampleRate & pcm_capabilities.sampleRate && in IsSoftwarePcmParametersSupported()
118 pcm_config.bitsPerSample & pcm_capabilities.bitsPerSample && in IsSoftwarePcmParametersSupported()
119 pcm_config.channelMode & pcm_capabilities.channelMode); in IsSoftwarePcmParametersSupported()
204 PcmParameters pcm_config = {}; in TEST_F() local
206 pcm_config.sampleRate = sample_rate; in TEST_F()
208 pcm_config.bitsPerSample = bits_per_sample; in TEST_F()
[all …]
Da2dp_encoding.cc556 bool a2dp_get_selected_hal_pcm_config(PcmParameters* pcm_config) { in a2dp_get_selected_hal_pcm_config() argument
557 if (pcm_config == nullptr) return false; in a2dp_get_selected_hal_pcm_config()
561 *pcm_config = ::bluetooth::audio::BluetoothAudioClientInterface:: in a2dp_get_selected_hal_pcm_config()
567 pcm_config->sampleRate = a2dp_codec_to_hal_sample_rate(current_codec); in a2dp_get_selected_hal_pcm_config()
568 pcm_config->bitsPerSample = a2dp_codec_to_hal_bits_per_sample(current_codec); in a2dp_get_selected_hal_pcm_config()
569 pcm_config->channelMode = a2dp_codec_to_hal_channel_mode(current_codec); in a2dp_get_selected_hal_pcm_config()
570 return (pcm_config->sampleRate != SampleRate::RATE_UNKNOWN && in a2dp_get_selected_hal_pcm_config()
571 pcm_config->bitsPerSample != BitsPerSample::BITS_UNKNOWN && in a2dp_get_selected_hal_pcm_config()
572 pcm_config->channelMode != ChannelMode::UNKNOWN); in a2dp_get_selected_hal_pcm_config()
655 PcmParameters pcm_config{}; in setup_codec() local
[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()