Lines Matching refs:mGain

5937             profile->mGains[0]->getDefaultConfig(&mGain);  in AudioOutputDescriptor()
6121 profile->mGains[0]->getDefaultConfig(&mGain); in AudioInputDescriptor()
6541 port->gains[i] = mGains[i]->mGain; in toAudioPort()
6732 gain->mGain.mode = loadGainMode((char *)node->value); in loadGain()
6735 gain->mGain.channel_mask = in loadGain()
6740 gain->mGain.channel_mask = in loadGain()
6746 gain->mGain.min_value = atoi((char *)node->value); in loadGain()
6748 gain->mGain.max_value = atoi((char *)node->value); in loadGain()
6750 gain->mGain.default_value = atoi((char *)node->value); in loadGain()
6752 gain->mGain.step_value = atoi((char *)node->value); in loadGain()
6754 gain->mGain.min_ramp_ms = atoi((char *)node->value); in loadGain()
6756 gain->mGain.max_ramp_ms = atoi((char *)node->value); in loadGain()
6762 gain->mGain.mode, gain->mGain.channel_mask, gain->mGain.min_value, gain->mGain.max_value); in loadGain()
6764 if (gain->mGain.mode == 0) { in loadGain()
7159 memset(&mGain, 0, sizeof(struct audio_gain)); in AudioGain()
7165 config->mode = mGain.mode; in getDefaultConfig()
7166 config->channel_mask = mGain.channel_mask; in getDefaultConfig()
7167 if ((mGain.mode & AUDIO_GAIN_MODE_JOINT) == AUDIO_GAIN_MODE_JOINT) { in getDefaultConfig()
7168 config->values[0] = mGain.default_value; in getDefaultConfig()
7172 numValues = audio_channel_count_from_in_mask(mGain.channel_mask); in getDefaultConfig()
7174 numValues = audio_channel_count_from_out_mask(mGain.channel_mask); in getDefaultConfig()
7177 config->values[i] = mGain.default_value; in getDefaultConfig()
7180 if ((mGain.mode & AUDIO_GAIN_MODE_RAMP) == AUDIO_GAIN_MODE_RAMP) { in getDefaultConfig()
7181 config->ramp_duration_ms = mGain.min_ramp_ms; in getDefaultConfig()
7187 if ((config->mode & ~mGain.mode) != 0) { in checkConfig()
7191 if ((config->values[0] < mGain.min_value) || in checkConfig()
7192 (config->values[0] > mGain.max_value)) { in checkConfig()
7196 if ((config->channel_mask & ~mGain.channel_mask) != 0) { in checkConfig()
7206 if ((config->values[i] < mGain.min_value) || in checkConfig()
7207 (config->values[i] > mGain.max_value)) { in checkConfig()
7213 if ((config->ramp_duration_ms < mGain.min_ramp_ms) || in checkConfig()
7214 (config->ramp_duration_ms > mGain.max_ramp_ms)) { in checkConfig()
7229 snprintf(buffer, SIZE, "%*s- mode: %08x\n", spaces, "", mGain.mode); in dump()
7231 snprintf(buffer, SIZE, "%*s- channel_mask: %08x\n", spaces, "", mGain.channel_mask); in dump()
7233 snprintf(buffer, SIZE, "%*s- min_value: %d mB\n", spaces, "", mGain.min_value); in dump()
7235 snprintf(buffer, SIZE, "%*s- max_value: %d mB\n", spaces, "", mGain.max_value); in dump()
7237 snprintf(buffer, SIZE, "%*s- default_value: %d mB\n", spaces, "", mGain.default_value); in dump()
7239 snprintf(buffer, SIZE, "%*s- step_value: %d mB\n", spaces, "", mGain.step_value); in dump()
7241 snprintf(buffer, SIZE, "%*s- min_ramp_ms: %d ms\n", spaces, "", mGain.min_ramp_ms); in dump()
7243 snprintf(buffer, SIZE, "%*s- max_ramp_ms: %d ms\n", spaces, "", mGain.max_ramp_ms); in dump()
7256 mGain.index = -1; in AudioPortConfig()
7300 mGain = config->gain; in applyAudioPortConfig()
7342 dstConfig->gain = mGain; in toAudioPortConfig()
7502 mGains[0]->getDefaultConfig(&mGain); in loadGains()