Lines Matching refs:configBase
131 AudioConfigBase* configBase) { 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()
141 status_t HidlUtils::audioConfigBaseToHal(const AudioConfigBase& configBase, 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()
155 AudioConfigBaseOptional* configBase) { in audioConfigBaseOptionalFromHal() argument
160 configBase->format.value(std::move(value)); in audioConfigBaseOptionalFromHal()
162 configBase->format.unspecified({}); in audioConfigBaseOptionalFromHal()
165 configBase->sampleRateHz.value(halConfigBase.sample_rate); in audioConfigBaseOptionalFromHal()
167 configBase->sampleRateHz.unspecified({}); in audioConfigBaseOptionalFromHal()
173 configBase->channelMask.value(std::move(value)); in audioConfigBaseOptionalFromHal()
178 status_t HidlUtils::audioConfigBaseOptionalToHal(const AudioConfigBaseOptional& configBase, in audioConfigBaseOptionalToHal() argument
183 *formatSpecified = configBase.format.getDiscriminator() == in audioConfigBaseOptionalToHal()
186 CONVERT_CHECKED(audioFormatToHal(configBase.format.value(), &halConfigBase->format), in audioConfigBaseOptionalToHal()
189 *sampleRateSpecified = configBase.sampleRateHz.getDiscriminator() == in audioConfigBaseOptionalToHal()
192 halConfigBase->sample_rate = configBase.sampleRateHz.value(); in audioConfigBaseOptionalToHal()
194 *channelMaskSpecified = configBase.channelMask.getDiscriminator() == in audioConfigBaseOptionalToHal()
198 audioChannelMaskToHal(configBase.channelMask.value(), &halConfigBase->channel_mask), in audioConfigBaseOptionalToHal()