Home
last modified time | relevance | path

Searched refs:configBase (Results 1 – 4 of 4) sorted by relevance

/hardware/interfaces/audio/common/all-versions/default/7.0/
DHidlUtils.cpp131 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()
[all …]
/hardware/interfaces/audio/common/all-versions/default/
DHidlUtils.h93 AudioConfigBase* configBase);
94 static status_t audioConfigBaseToHal(const AudioConfigBase& configBase,
100 AudioConfigBaseOptional* configBase);
101 static status_t audioConfigBaseOptionalToHal(const AudioConfigBaseOptional& configBase,
/hardware/interfaces/audio/core/all-versions/default/
DStream.cpp279 AudioConfigBase configBase = {}; in getAudioProperties() local
280 status_t status = HidlUtils::audioConfigBaseFromHal(halConfigBase, mIsInput, &configBase); in getAudioProperties()
281 _hidl_cb(Stream::analyzeStatus("get_audio_properties", status), configBase); in getAudioProperties()
/hardware/interfaces/audio/common/all-versions/default/tests/
Dhidlutils_tests.cpp153 AudioConfigBase configBase; in generateValidConfigBase() local
154 configBase.sampleRateHz = 44100; in generateValidConfigBase()
155 configBase.format = toString(xsd::AudioFormat::AUDIO_FORMAT_PCM_16_BIT); in generateValidConfigBase()
156 configBase.channelMask = isInput ? toString(xsd::AudioChannelMask::AUDIO_CHANNEL_IN_STEREO) in generateValidConfigBase()
158 return configBase; in generateValidConfigBase()