Home
last modified time | relevance | path

Searched refs:halConfigBase (Results 1 – 5 of 5) sorted by relevance

/hardware/interfaces/audio/common/all-versions/default/7.0/
DHidlUtils.cpp130 status_t HidlUtils::audioConfigBaseFromHal(const audio_config_base_t& halConfigBase, bool isInput, in audioConfigBaseFromHal() argument
133 configBase->sampleRateHz = halConfigBase.sample_rate; in audioConfigBaseFromHal()
135 audioChannelMaskFromHal(halConfigBase.channel_mask, isInput, &configBase->channelMask), in audioConfigBaseFromHal()
137 CONVERT_CHECKED(audioFormatFromHal(halConfigBase.format, &configBase->format), result); in audioConfigBaseFromHal()
142 audio_config_base_t* halConfigBase) { in audioConfigBaseToHal() argument
144 halConfigBase->sample_rate = configBase.sampleRateHz; in audioConfigBaseToHal()
145 CONVERT_CHECKED(audioChannelMaskToHal(configBase.channelMask, &halConfigBase->channel_mask), in audioConfigBaseToHal()
147 CONVERT_CHECKED(audioFormatToHal(configBase.format, &halConfigBase->format), result); in audioConfigBaseToHal()
151 status_t HidlUtils::audioConfigBaseOptionalFromHal(const audio_config_base_t& halConfigBase, in audioConfigBaseOptionalFromHal() argument
159 CONVERT_CHECKED(audioFormatFromHal(halConfigBase.format, &value), result); in audioConfigBaseOptionalFromHal()
[all …]
/hardware/interfaces/audio/effect/all-versions/default/util/
DEffectUtils.cpp84 audio_config_base_t halConfigBase = {halConfig.samplingRate, in effectBufferConfigFromHal() local
88 halConfigBase, isInput, halConfig.mask & EFFECT_CONFIG_FORMAT, in effectBufferConfigFromHal()
105 audio_config_base_t halConfigBase = AUDIO_CONFIG_BASE_INITIALIZER; in effectBufferConfigToHal() local
108 HidlUtils::audioConfigBaseOptionalToHal(config.base, &halConfigBase, &formatSpecified, in effectBufferConfigToHal()
114 halConfig->samplingRate = halConfigBase.sample_rate; in effectBufferConfigToHal()
118 halConfig->channels = halConfigBase.channel_mask; in effectBufferConfigToHal()
122 halConfig->format = halConfigBase.format; in effectBufferConfigToHal()
/hardware/interfaces/audio/core/all-versions/default/
DStream.cpp272 audio_config_base_t halConfigBase = {mStream->get_sample_rate(mStream), in getAudioProperties() local
276 status_t status = HidlUtils::audioConfigBaseFromHal(halConfigBase, mIsInput, &configBase); in getAudioProperties()
282 audio_config_base_t halConfigBase = AUDIO_CONFIG_BASE_INITIALIZER; in setAudioProperties() local
285 config, &halConfigBase, &formatSpecified, &sRateSpecified, &channelMaskSpecified); in setAudioProperties()
291 static_cast<int>(halConfigBase.sample_rate)); in setAudioProperties()
298 static_cast<int>(halConfigBase.channel_mask)); in setAudioProperties()
305 setParam(AudioParameter::keyFormat, static_cast<int>(halConfigBase.format)); in setAudioProperties()
/hardware/interfaces/audio/common/all-versions/default/
DHidlUtils.h90 static status_t audioConfigBaseFromHal(const audio_config_base_t& halConfigBase, bool isInput,
93 audio_config_base_t* halConfigBase);
94 static status_t audioConfigBaseOptionalFromHal(const audio_config_base_t& halConfigBase,
100 audio_config_base_t* halConfigBase,
/hardware/interfaces/soundtrigger/2.3/default/
DSoundTriggerHw.cpp479 struct sound_trigger_recognition_config* halConfigBase = &halConfigExtended->base; in convertRecognitionConfigToHalHeader() local
481 halConfigBase->capture_handle = (audio_io_handle_t)config_2_0->captureHandle; in convertRecognitionConfigToHalHeader()
482 halConfigBase->capture_device = (audio_devices_t)config_2_0->captureDevice; in convertRecognitionConfigToHalHeader()
483 halConfigBase->capture_requested = config_2_0->captureRequested; in convertRecognitionConfigToHalHeader()
487 convertPhraseRecognitionExtraToHal(&halConfigBase->phrases[i], &config_2_0->phrases[i]); in convertRecognitionConfigToHalHeader()
489 halConfigBase->num_phrases = i; in convertRecognitionConfigToHalHeader()
491 halConfigBase->data_offset = sizeof(struct sound_trigger_recognition_config_extended_1_3); in convertRecognitionConfigToHalHeader()
492 halConfigBase->data_size = config_2_1->data.size(); in convertRecognitionConfigToHalHeader()
499 uint8_t* dst = reinterpret_cast<uint8_t*>(halConfigExtended) + halConfigBase->data_offset; in convertRecognitionConfigToHalHeader()