Lines Matching refs:mctl
128 struct mixer_ctl* mctl; in getVolumes() local
129 RETURN_STATUS_IF_ERROR(findControl(Mixer::HW_VOLUME, &mctl)); in getVolumes()
132 if (int err = getMixerControlPercent(mctl, &percents); err != 0) { in getVolumes()
158 struct mixer_ctl* mctl; in setVolumes() local
159 RETURN_STATUS_IF_ERROR(findControl(Mixer::HW_VOLUME, &mctl)); in setVolumes()
165 if (int err = setMixerControlPercent(mctl, percents); err != 0) { in setVolumes()
184 struct mixer_ctl* mctl; in getMixerControlMute() local
185 RETURN_STATUS_IF_ERROR(findControl(ctl, &mctl)); in getMixerControlMute()
188 if (int err = getMixerControlValues(mctl, &mutedValues); err != 0) { in getMixerControlMute()
201 struct mixer_ctl* mctl; in getMixerControlVolume() local
202 RETURN_STATUS_IF_ERROR(findControl(ctl, &mctl)); in getMixerControlVolume()
205 if (int err = getMixerControlPercent(mctl, &percents); err != 0) { in getMixerControlVolume()
218 struct mixer_ctl* mctl; in setMixerControlMute() local
219 RETURN_STATUS_IF_ERROR(findControl(ctl, &mctl)); in setMixerControlMute()
221 if (int err = setMixerControlValue(mctl, muted ? 0 : 1); err != 0) { in setMixerControlMute()
229 struct mixer_ctl* mctl; in setMixerControlVolume() local
230 RETURN_STATUS_IF_ERROR(findControl(ctl, &mctl)); in setMixerControlVolume()
233 if (int err = setMixerControlPercent(mctl, std::floor(volume * 100)); err != 0) { in setMixerControlVolume()