Home
last modified time | relevance | path

Searched refs:newvol (Results 1 – 2 of 2) sorted by relevance

/sound/drivers/opl3/
Dopl3_midi.c67 int oldvol, newvol, n; in snd_opl3_calc_volume() local
76 newvol = opl3_volume_table[volume] + oldvol; in snd_opl3_calc_volume()
77 if (newvol > OPL3_TOTAL_LEVEL_MASK) in snd_opl3_calc_volume()
78 newvol = OPL3_TOTAL_LEVEL_MASK; in snd_opl3_calc_volume()
79 else if (newvol < 0) in snd_opl3_calc_volume()
80 newvol = 0; in snd_opl3_calc_volume()
82 n = OPL3_TOTAL_LEVEL_MASK - (newvol & OPL3_TOTAL_LEVEL_MASK); in snd_opl3_calc_volume()
/sound/mips/
Dsgio2audio.c189 int newvol, oldvol; in sgio2audio_gain_put() local
192 newvol = (ucontrol->value.integer.value[0] << 8) | in sgio2audio_gain_put()
195 newvol = ad1843_set_gain(&chip->ad1843, kcontrol->private_value, in sgio2audio_gain_put()
196 newvol); in sgio2audio_gain_put()
198 return newvol != oldvol; in sgio2audio_gain_put()