Home
last modified time | relevance | path

Searched refs:mGain (Results 1 – 14 of 14) sorted by relevance

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioGain.cpp39 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 …]
DAudioPort.cpp387 mGain.index = -1; in AudioPortConfig()
424 mGain = config->gain; in applyAudioPortConfig()
466 dstConfig->gain = mGain; in toAudioPortConfig()
DAudioInputDescriptor.cpp37 profile->mGains[0]->getDefaultConfig(&mGain); in AudioInputDescriptor()
DConfigParsingUtils.cpp96 deviceDesc->mGains[0]->getDefaultConfig(&deviceDesc->mGain); in loadDeviceDescriptorGains()
DAudioOutputDescriptor.cpp52 port->mGains[0]->getDefaultConfig(&mGain); in AudioOutputDescriptor()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioGain.h31 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 …]
DAudioPort.h172 struct audio_gain_config mGain; variable
/frameworks/base/media/java/android/media/
DAudioPortConfig.java37 private final AudioGainConfig mGain; field in AudioPortConfig
54 mGain = gain; in AudioPortConfig()
91 return mGain; in gain()
100 + ", mGain:" + mGain in toString()
DAudioGainConfig.java28 AudioGain mGain; field in AudioGainConfig
38 mGain = gain; in AudioGainConfig()
/frameworks/av/media/libeffects/testlibs/
DAudioShelvingFilter.cpp86 mGain = millibel + 9600; in setGain()
93 mGain >> GAIN_PRECISION_BITS in commit()
97 static_cast<uint32_t>(mGain) << (32 - GAIN_PRECISION_BITS) in commit()
DAudioPeakingFilter.cpp80 mGain = millibel + 9600; in setGain()
91 mGain >> GAIN_PRECISION_BITS, in commit()
96 static_cast<uint32_t>(mGain) << (32 - GAIN_PRECISION_BITS), in commit()
DAudioShelvingFilter.h74 int32_t getGain() const { return mGain - 9600; } in getGain()
123 int32_t mGain; variable
DAudioPeakingFilter.h68 int32_t getGain() const { return mGain - 9600; } in getGain()
129 int32_t mGain; variable
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp70 jfieldID mGain; member
694 jobject jGain = env->GetObjectField(jAudioPortConfig, gAudioPortConfigFields.mGain); in convertAudioPortConfigToNative()
1805 gAudioPortConfigFields.mGain = GetFieldIDOrDie(env, audioPortConfigClass, "mGain", in register_android_media_AudioSystem()