Lines Matching refs:vol
276 long vol = minVol + volume * (maxVol - minVol); in setMasterVolume() local
277 if (vol > maxVol) vol = maxVol; in setMasterVolume()
278 if (vol < minVol) vol = minVol; in setMasterVolume()
280 info->volume = vol; in setMasterVolume()
281 snd_mixer_selem_set_playback_volume_all (info->elem, vol); in setMasterVolume()
295 long vol = minVol + gain * (maxVol - minVol); in setMasterGain() local
296 if (vol > maxVol) vol = maxVol; in setMasterGain()
297 if (vol < minVol) vol = minVol; in setMasterGain()
299 info->volume = vol; in setMasterGain()
300 snd_mixer_selem_set_capture_volume_all (info->elem, vol); in setMasterGain()
317 long vol = minVol + left * (maxVol - minVol); in setVolume() local
318 if (vol > maxVol) vol = maxVol; in setVolume()
319 if (vol < minVol) vol = minVol; in setVolume()
321 info->volume = vol; in setVolume()
322 snd_mixer_selem_set_playback_volume_all (info->elem, vol); in setVolume()
340 long vol = minVol + gain * (maxVol - minVol); in setGain() local
341 if (vol > maxVol) vol = maxVol; in setGain()
342 if (vol < minVol) vol = minVol; in setGain()
344 info->volume = vol; in setGain()
345 snd_mixer_selem_set_capture_volume_all (info->elem, vol); in setGain()