Lines Matching refs:gain

71 void HidlUtils::audioGainFromHal(const struct audio_gain& halGain, AudioGain* gain) {  in audioGainFromHal()  argument
72 gain->mode = EnumBitfield<AudioGainMode>(halGain.mode); in audioGainFromHal()
73 gain->channelMask = EnumBitfield<AudioChannelMask>(halGain.channel_mask); in audioGainFromHal()
74 gain->minValue = halGain.min_value; in audioGainFromHal()
75 gain->maxValue = halGain.max_value; in audioGainFromHal()
76 gain->defaultValue = halGain.default_value; in audioGainFromHal()
77 gain->stepValue = halGain.step_value; in audioGainFromHal()
78 gain->minRampMs = halGain.min_ramp_ms; in audioGainFromHal()
79 gain->maxRampMs = halGain.max_ramp_ms; in audioGainFromHal()
82 void HidlUtils::audioGainToHal(const AudioGain& gain, struct audio_gain* halGain) { in audioGainToHal() argument
83 halGain->mode = static_cast<audio_gain_mode_t>(gain.mode); in audioGainToHal()
84 halGain->channel_mask = static_cast<audio_channel_mask_t>(gain.channelMask); in audioGainToHal()
85 halGain->min_value = gain.minValue; in audioGainToHal()
86 halGain->max_value = gain.maxValue; in audioGainToHal()
87 halGain->default_value = gain.defaultValue; in audioGainToHal()
88 halGain->step_value = gain.stepValue; in audioGainToHal()
89 halGain->min_ramp_ms = gain.minRampMs; in audioGainToHal()
90 halGain->max_ramp_ms = gain.maxRampMs; in audioGainToHal()
149 audioGainConfigFromHal(halConfig.gain, &config->gain); in audioPortConfigFromHal()
187 audioGainConfigToHal(config.gain, &halConfig->gain); in audioPortConfigToHal()