• Home
  • Raw
  • Download

Lines Matching refs:vol

140 	int vol[2];  in snd_pmac_awacs_get_volume()  local
143 vol[0] = (chip->awacs_reg[reg] >> lshift) & 0xf; in snd_pmac_awacs_get_volume()
144 vol[1] = chip->awacs_reg[reg] & 0xf; in snd_pmac_awacs_get_volume()
147 vol[0] = 0x0f - vol[0]; in snd_pmac_awacs_get_volume()
148 vol[1] = 0x0f - vol[1]; in snd_pmac_awacs_get_volume()
150 ucontrol->value.integer.value[0] = vol[0]; in snd_pmac_awacs_get_volume()
151 ucontrol->value.integer.value[1] = vol[1]; in snd_pmac_awacs_get_volume()
164 unsigned int vol[2]; in snd_pmac_awacs_put_volume() local
166 vol[0] = ucontrol->value.integer.value[0]; in snd_pmac_awacs_put_volume()
167 vol[1] = ucontrol->value.integer.value[1]; in snd_pmac_awacs_put_volume()
168 if (vol[0] > 0x0f || vol[1] > 0x0f) in snd_pmac_awacs_put_volume()
171 vol[0] = 0x0f - vol[0]; in snd_pmac_awacs_put_volume()
172 vol[1] = 0x0f - vol[1]; in snd_pmac_awacs_put_volume()
174 vol[0] &= 0x0f; in snd_pmac_awacs_put_volume()
175 vol[1] &= 0x0f; in snd_pmac_awacs_put_volume()
179 val |= vol[0] << lshift; in snd_pmac_awacs_put_volume()
180 val |= vol[1]; in snd_pmac_awacs_put_volume()
296 static void awacs_amp_set_master(struct awacs_amp *amp, int vol) in awacs_amp_set_master() argument
298 amp->amp_master = vol; in awacs_amp_set_master()
299 if (vol <= 79) in awacs_amp_set_master()
300 vol = 32 + (79 - vol); in awacs_amp_set_master()
302 vol = 32 - (vol - 79); in awacs_amp_set_master()
303 awacs_set_cuda(1, vol); in awacs_amp_set_master()
347 int vol[2]; in snd_pmac_awacs_put_volume_amp() local
350 vol[0] = (31 - (ucontrol->value.integer.value[0] & 31)) in snd_pmac_awacs_put_volume_amp()
352 vol[1] = (31 - (ucontrol->value.integer.value[1] & 31)) in snd_pmac_awacs_put_volume_amp()
354 return awacs_amp_set_vol(amp, index, vol[0], vol[1], 1); in snd_pmac_awacs_put_volume_amp()
376 int vol[2]; in snd_pmac_awacs_put_switch_amp() local
379 vol[0] = (ucontrol->value.integer.value[0] ? 0 : 32) in snd_pmac_awacs_put_switch_amp()
381 vol[1] = (ucontrol->value.integer.value[1] ? 0 : 32) in snd_pmac_awacs_put_switch_amp()
383 return awacs_amp_set_vol(amp, index, vol[0], vol[1], 1); in snd_pmac_awacs_put_switch_amp()
795 int vol[2]; in toggle_amp_mute() local
796 vol[0] = amp->amp_vol[index][0] & 31; in toggle_amp_mute()
797 vol[1] = amp->amp_vol[index][1] & 31; in toggle_amp_mute()
799 vol[0] |= 32; in toggle_amp_mute()
800 vol[1] |= 32; in toggle_amp_mute()
802 return awacs_amp_set_vol(amp, index, vol[0], vol[1], 1); in toggle_amp_mute()
871 int err, vol; in snd_pmac_awacs_init() local
891 vol = 0x0f; /* no, on alsa, muted as default */ in snd_pmac_awacs_init()
892 vol = vol + (vol << 6); in snd_pmac_awacs_init()
893 chip->awacs_reg[2] = vol; in snd_pmac_awacs_init()
894 chip->awacs_reg[4] = vol; in snd_pmac_awacs_init()
897 chip->awacs_reg[5] = vol; in snd_pmac_awacs_init()