Lines Matching refs:halConfigBase
130 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()
165 configBase->sampleRateHz.value(halConfigBase.sample_rate); in audioConfigBaseOptionalFromHal()
171 CONVERT_CHECKED(audioChannelMaskFromHal(halConfigBase.channel_mask, isInput, &value), in audioConfigBaseOptionalFromHal()
179 audio_config_base_t* halConfigBase, in audioConfigBaseOptionalToHal() argument
186 CONVERT_CHECKED(audioFormatToHal(configBase.format.value(), &halConfigBase->format), in audioConfigBaseOptionalToHal()
192 halConfigBase->sample_rate = configBase.sampleRateHz.value(); in audioConfigBaseOptionalToHal()
198 audioChannelMaskToHal(configBase.channelMask.value(), &halConfigBase->channel_mask), in audioConfigBaseOptionalToHal()
372 audio_config_base_t halConfigBase = {halConfig.sample_rate, halConfig.channel_mask, in audioConfigFromHal() local
374 CONVERT_CHECKED(audioConfigBaseFromHal(halConfigBase, isInput, &config->base), result); in audioConfigFromHal()
388 audio_config_base_t halConfigBase = AUDIO_CONFIG_BASE_INITIALIZER; in audioConfigToHal() local
389 CONVERT_CHECKED(audioConfigBaseToHal(config.base, &halConfigBase), result); in audioConfigToHal()
390 halConfig->sample_rate = halConfigBase.sample_rate; in audioConfigToHal()
391 halConfig->channel_mask = halConfigBase.channel_mask; in audioConfigToHal()
392 halConfig->format = halConfigBase.format; in audioConfigToHal()
513 audio_config_base_t halConfigBase = {halOffload.sample_rate, halOffload.channel_mask, in audioOffloadInfoFromHal() local
515 CONVERT_CHECKED(audioConfigBaseFromHal(halConfigBase, false /*isInput*/, &offload->base), in audioOffloadInfoFromHal()
542 audio_config_base_t halConfigBase = AUDIO_CONFIG_BASE_INITIALIZER; in audioOffloadInfoToHal() local
543 CONVERT_CHECKED(audioConfigBaseToHal(offload.base, &halConfigBase), result); in audioOffloadInfoToHal()
544 halOffload->sample_rate = halConfigBase.sample_rate; in audioOffloadInfoToHal()
545 halOffload->channel_mask = halConfigBase.channel_mask; in audioOffloadInfoToHal()
546 halOffload->format = halConfigBase.format; in audioOffloadInfoToHal()
576 audio_config_base_t halConfigBase = {halConfig.sample_rate, halConfig.channel_mask, in audioPortConfigFromHal() local
580 halConfigBase, isInput, halConfig.config_mask & AUDIO_PORT_CONFIG_FORMAT, in audioPortConfigFromHal()
600 audio_config_base_t halConfigBase = AUDIO_CONFIG_BASE_INITIALIZER; in audioPortConfigToHal() local
602 CONVERT_CHECKED(audioConfigBaseOptionalToHal(config.base, &halConfigBase, &formatSpecified, in audioPortConfigToHal()
607 halConfig->sample_rate = halConfigBase.sample_rate; in audioPortConfigToHal()
611 halConfig->channel_mask = halConfigBase.channel_mask; in audioPortConfigToHal()
615 halConfig->format = halConfigBase.format; in audioPortConfigToHal()