Home
last modified time | relevance | path

Searched refs:halProfile (Results 1 – 3 of 3) sorted by relevance

/hardware/interfaces/audio/common/all-versions/default/7.0/
DHidlUtils.cpp945 status_t HidlUtils::audioProfileFromHal(const struct audio_profile& halProfile, bool isInput, in audioUsageFromHal() argument
948 CONVERT_CHECKED(audioFormatFromHal(halProfile.format, &profile->format), result); in audioUsageFromHal()
949 profile->sampleRates.resize(halProfile.num_sample_rates); in audioUsageFromHal()
950 for (size_t i = 0; i < halProfile.num_sample_rates; ++i) { in audioUsageFromHal()
951 profile->sampleRates[i] = halProfile.sample_rates[i]; in audioUsageFromHal()
953 profile->channelMasks.resize(halProfile.num_channel_masks); in audioUsageFromHal()
954 for (size_t i = 0; i < halProfile.num_channel_masks; ++i) { in audioUsageFromHal()
955 CONVERT_CHECKED(audioChannelMaskFromHal(halProfile.channel_masks[i], isInput, in audioUsageFromHal()
963 struct audio_profile* halProfile) { in audioUsageFromHal() argument
965 CONVERT_CHECKED(audioFormatToHal(profile.format, &halProfile->format), result); in audioUsageFromHal()
[all …]
/hardware/interfaces/audio/common/all-versions/default/
DHidlUtils.h117 static status_t audioProfileFromHal(const struct audio_profile& halProfile, bool isInput,
120 struct audio_profile* halProfile);
/hardware/interfaces/audio/common/all-versions/default/tests/
Dhidlutils_tests.cpp917 struct audio_profile halProfile; in TEST() local
918 EXPECT_EQ(NO_ERROR, HidlUtils::audioProfileToHal(profile, &halProfile)); in TEST()
921 HidlUtils::audioProfileFromHal(halProfile, false /*isInput*/, &profileBack)); in TEST()