Home
last modified time | relevance | path

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

/hardware/interfaces/audio/common/all-versions/default/
DHidlUtils.cpp75 status_t HidlUtils::audioGainFromHal(const struct audio_gain& halGain, bool, AudioGain* gain) { in audioGainFromHal() argument
76 gain->mode = EnumBitfield<AudioGainMode>(halGain.mode); in audioGainFromHal()
77 gain->channelMask = EnumBitfield<AudioChannelMask>(halGain.channel_mask); in audioGainFromHal()
78 gain->minValue = halGain.min_value; in audioGainFromHal()
79 gain->maxValue = halGain.max_value; in audioGainFromHal()
80 gain->defaultValue = halGain.default_value; in audioGainFromHal()
81 gain->stepValue = halGain.step_value; in audioGainFromHal()
82 gain->minRampMs = halGain.min_ramp_ms; in audioGainFromHal()
83 gain->maxRampMs = halGain.max_ramp_ms; in audioGainFromHal()
87 status_t HidlUtils::audioGainToHal(const AudioGain& gain, struct audio_gain* halGain) { in audioGainToHal() argument
[all …]
DHidlUtils.h54 static status_t audioGainFromHal(const struct audio_gain& halGain, bool isInput,
56 static status_t audioGainToHal(const AudioGain& gain, struct audio_gain* halGain);
/hardware/interfaces/audio/common/all-versions/default/7.0/
DHidlUtils.cpp457 status_t HidlUtils::audioGainFromHal(const struct audio_gain& halGain, bool isInput, in audioGainFromHal() argument
460 CONVERT_CHECKED(audioGainModeMaskFromHal(halGain.mode, &gain->mode), result); in audioGainFromHal()
461 CONVERT_CHECKED(audioChannelMaskFromHal(halGain.channel_mask, isInput, &gain->channelMask), in audioGainFromHal()
463 gain->minValue = halGain.min_value; in audioGainFromHal()
464 gain->maxValue = halGain.max_value; in audioGainFromHal()
465 gain->defaultValue = halGain.default_value; in audioGainFromHal()
466 gain->stepValue = halGain.step_value; in audioGainFromHal()
467 gain->minRampMs = halGain.min_ramp_ms; in audioGainFromHal()
468 gain->maxRampMs = halGain.max_ramp_ms; in audioGainFromHal()
472 status_t HidlUtils::audioGainToHal(const AudioGain& gain, struct audio_gain* halGain) { in audioGainToHal() argument
[all …]
/hardware/interfaces/audio/common/all-versions/default/tests/
Dhidlutils_tests.cpp718 struct audio_gain halGain; in TEST() local
719 EXPECT_EQ(NO_ERROR, HidlUtils::audioGainToHal(gain, &halGain)); in TEST()
721 EXPECT_EQ(NO_ERROR, HidlUtils::audioGainFromHal(halGain, false /*isInput*/, &gainBack)); in TEST()
725 EXPECT_TRUE(audio_gains_are_equal(&halGain, &halGainBack)); in TEST()