Lines Matching refs:volume
26 // To get a wider range and finer control over volume levels, first the Master
28 // adjusting that as well. If the PCM element has more volume steps, it allows
29 // for finer granularity in the total volume.
142 LOG(WARNING) << "Got request to set volume to NaN";
157 // To indicate the volume is not valid yet, a very low volume value is stored.
159 static bool PrefVolumeValid(double volume) {
160 return (volume > kPrefVolumeInvalid + 0.1);
168 // Set volume to minimum on mute, since switching the element off does not
171 // TODO(davej): Remove save_volume_ and setting volume to minimum if
173 // is done by setting the volume to min_volume_.
286 // which is needed for finer volume control and for muting by setting to zero.
348 VLOG(1) << "ALSA volume range is " << min_volume_ << " dB to "
369 // If volume or mute are invalid, set them now to the current actual values.
378 VLOG(1) << "Setting volume to " << pref_volume << " and mute to " << mute;
392 // This happens during init, so set the volume off the UI thread.
419 // If a PCM volume slider exists, then first set the Master volume to the
420 // nearest volume >= requested volume, then adjust PCM volume down to get
421 // closer to the requested volume.
512 VLOG(1) << "Set volume " << snd_mixer_selem_get_name(elem)
517 alsa_long_t volume = vol_lo;
519 elem, static_cast<snd_mixer_selem_channel_id_t>(0), &volume);
525 *actual_vol = db_lo + (volume - vol_lo) * db_step;
527 VLOG(1) << "Actual volume " << snd_mixer_selem_get_name(elem)