Searched refs:mGain (Results 1 – 14 of 14) sorted by relevance
39 memset(&mGain, 0, sizeof(struct audio_gain)); in AudioGain()45 config->mode = mGain.mode; in getDefaultConfig()46 config->channel_mask = mGain.channel_mask; in getDefaultConfig()47 if ((mGain.mode & AUDIO_GAIN_MODE_JOINT) == AUDIO_GAIN_MODE_JOINT) { in getDefaultConfig()48 config->values[0] = mGain.default_value; in getDefaultConfig()52 numValues = audio_channel_count_from_in_mask(mGain.channel_mask); in getDefaultConfig()54 numValues = audio_channel_count_from_out_mask(mGain.channel_mask); in getDefaultConfig()57 config->values[i] = mGain.default_value; in getDefaultConfig()60 if ((mGain.mode & AUDIO_GAIN_MODE_RAMP) == AUDIO_GAIN_MODE_RAMP) { in getDefaultConfig()61 config->ramp_duration_ms = mGain.min_ramp_ms; in getDefaultConfig()[all …]
387 mGain.index = -1; in AudioPortConfig()424 mGain = config->gain; in applyAudioPortConfig()466 dstConfig->gain = mGain; in toAudioPortConfig()
37 profile->mGains[0]->getDefaultConfig(&mGain); in AudioInputDescriptor()
96 deviceDesc->mGains[0]->getDefaultConfig(&deviceDesc->mGain); in loadDeviceDescriptorGains()
52 port->mGains[0]->getDefaultConfig(&mGain); in AudioOutputDescriptor()
31 void setMode(audio_gain_mode_t mode) { mGain.mode = mode; } in setMode()32 const audio_gain_mode_t &getMode() const { return mGain.mode; } in getMode()34 void setChannelMask(audio_channel_mask_t mask) { mGain.channel_mask = mask; } in setChannelMask()35 const audio_channel_mask_t &getChannelMask() const { return mGain.channel_mask; } in getChannelMask()37 void setMinValueInMb(int minValue) { mGain.min_value = minValue; } in setMinValueInMb()38 int getMinValueInMb() const { return mGain.min_value; } in getMinValueInMb()40 void setMaxValueInMb(int maxValue) { mGain.max_value = maxValue; } in setMaxValueInMb()41 int getMaxValueInMb() const { return mGain.max_value; } in getMaxValueInMb()43 void setDefaultValueInMb(int defaultValue) { mGain.default_value = defaultValue; } in setDefaultValueInMb()44 int getDefaultValueInMb() const { return mGain.default_value; } in getDefaultValueInMb()[all …]
172 struct audio_gain_config mGain; variable
37 private final AudioGainConfig mGain; field in AudioPortConfig54 mGain = gain; in AudioPortConfig()91 return mGain; in gain()100 + ", mGain:" + mGain in toString()
28 AudioGain mGain; field in AudioGainConfig38 mGain = gain; in AudioGainConfig()
86 mGain = millibel + 9600; in setGain()93 mGain >> GAIN_PRECISION_BITS in commit()97 static_cast<uint32_t>(mGain) << (32 - GAIN_PRECISION_BITS) in commit()
80 mGain = millibel + 9600; in setGain()91 mGain >> GAIN_PRECISION_BITS, in commit()96 static_cast<uint32_t>(mGain) << (32 - GAIN_PRECISION_BITS), in commit()
74 int32_t getGain() const { return mGain - 9600; } in getGain()123 int32_t mGain; variable
68 int32_t getGain() const { return mGain - 9600; } in getGain()129 int32_t mGain; variable
70 jfieldID mGain; member694 jobject jGain = env->GetObjectField(jAudioPortConfig, gAudioPortConfigFields.mGain); in convertAudioPortConfigToNative()1805 gAudioPortConfigFields.mGain = GetFieldIDOrDie(env, audioPortConfigClass, "mGain", in register_android_media_AudioSystem()