Lines Matching refs:mGain
41 memset(&mGain, 0, sizeof(struct audio_gain)); in AudioGain()
47 config->mode = mGain.mode; in getDefaultConfig()
48 config->channel_mask = mGain.channel_mask; in getDefaultConfig()
49 if ((mGain.mode & AUDIO_GAIN_MODE_JOINT) == AUDIO_GAIN_MODE_JOINT) { in getDefaultConfig()
50 config->values[0] = mGain.default_value; in getDefaultConfig()
54 numValues = audio_channel_count_from_in_mask(mGain.channel_mask); in getDefaultConfig()
56 numValues = audio_channel_count_from_out_mask(mGain.channel_mask); in getDefaultConfig()
59 config->values[i] = mGain.default_value; in getDefaultConfig()
62 if ((mGain.mode & AUDIO_GAIN_MODE_RAMP) == AUDIO_GAIN_MODE_RAMP) { in getDefaultConfig()
63 config->ramp_duration_ms = mGain.min_ramp_ms; in getDefaultConfig()
69 if ((config->mode & ~mGain.mode) != 0) { in checkConfig()
73 if ((config->values[0] < mGain.min_value) || in checkConfig()
74 (config->values[0] > mGain.max_value)) { in checkConfig()
78 if ((config->channel_mask & ~mGain.channel_mask) != 0) { in checkConfig()
88 if ((config->values[i] < mGain.min_value) || in checkConfig()
89 (config->values[i] > mGain.max_value)) { in checkConfig()
95 if ((config->ramp_duration_ms < mGain.min_ramp_ms) || in checkConfig()
96 (config->ramp_duration_ms > mGain.max_ramp_ms)) { in checkConfig()
106 dst->append(base::StringPrintf("%*s- mode: %08x\n", spaces, "", mGain.mode)); in dump()
107 dst->append(base::StringPrintf("%*s- channel_mask: %08x\n", spaces, "", mGain.channel_mask)); in dump()
108 dst->append(base::StringPrintf("%*s- min_value: %d mB\n", spaces, "", mGain.min_value)); in dump()
109 dst->append(base::StringPrintf("%*s- max_value: %d mB\n", spaces, "", mGain.max_value)); in dump()
110 dst->append(base::StringPrintf("%*s- default_value: %d mB\n", spaces, "", mGain.default_value)); in dump()
111 dst->append(base::StringPrintf("%*s- step_value: %d mB\n", spaces, "", mGain.step_value)); in dump()
112 dst->append(base::StringPrintf("%*s- min_ramp_ms: %d ms\n", spaces, "", mGain.min_ramp_ms)); in dump()
113 dst->append(base::StringPrintf("%*s- max_ramp_ms: %d ms\n", spaces, "", mGain.max_ramp_ms)); in dump()
122 mGain.mode == other->mGain.mode && in equals()
123 mGain.channel_mask == other->mGain.channel_mask && in equals()
124 mGain.min_value == other->mGain.min_value && in equals()
125 mGain.max_value == other->mGain.max_value && in equals()
126 mGain.default_value == other->mGain.default_value && in equals()
127 mGain.step_value == other->mGain.step_value && in equals()
128 mGain.min_ramp_ms == other->mGain.min_ramp_ms && in equals()
129 mGain.max_ramp_ms == other->mGain.max_ramp_ms; in equals()
138 if ((status = parcel->writeUint32(mGain.mode)) != NO_ERROR) return status; in writeToParcel()
139 if ((status = parcel->writeUint32(mGain.channel_mask)) != NO_ERROR) return status; in writeToParcel()
140 if ((status = parcel->writeInt32(mGain.min_value)) != NO_ERROR) return status; in writeToParcel()
141 if ((status = parcel->writeInt32(mGain.max_value)) != NO_ERROR) return status; in writeToParcel()
142 if ((status = parcel->writeInt32(mGain.default_value)) != NO_ERROR) return status; in writeToParcel()
143 if ((status = parcel->writeUint32(mGain.step_value)) != NO_ERROR) return status; in writeToParcel()
144 if ((status = parcel->writeUint32(mGain.min_ramp_ms)) != NO_ERROR) return status; in writeToParcel()
145 status = parcel->writeUint32(mGain.max_ramp_ms); in writeToParcel()
155 if ((status = parcel->readUint32(&mGain.mode)) != NO_ERROR) return status; in readFromParcel()
156 if ((status = parcel->readUint32(&mGain.channel_mask)) != NO_ERROR) return status; in readFromParcel()
157 if ((status = parcel->readInt32(&mGain.min_value)) != NO_ERROR) return status; in readFromParcel()
158 if ((status = parcel->readInt32(&mGain.max_value)) != NO_ERROR) return status; in readFromParcel()
159 if ((status = parcel->readInt32(&mGain.default_value)) != NO_ERROR) return status; in readFromParcel()
160 if ((status = parcel->readUint32(&mGain.step_value)) != NO_ERROR) return status; in readFromParcel()
161 if ((status = parcel->readUint32(&mGain.min_ramp_ms)) != NO_ERROR) return status; in readFromParcel()
162 status = parcel->readUint32(&mGain.max_ramp_ms); in readFromParcel()