• Home
  • Raw
  • Download

Lines Matching refs:volume

124 			       long *volume, int shift)  in snd_pmac_burgundy_write_volume()  argument
128 if (volume[0] < 0 || volume[0] > 100 || in snd_pmac_burgundy_write_volume()
129 volume[1] < 0 || volume[1] > 100) in snd_pmac_burgundy_write_volume()
131 lvolume = volume[0] ? volume[0] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume()
132 rvolume = volume[1] ? volume[1] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume()
143 long *volume, int shift) in snd_pmac_burgundy_read_volume() argument
149 volume[0] = wvolume & 0xff; in snd_pmac_burgundy_read_volume()
150 if (volume[0] >= BURGUNDY_VOLUME_OFFSET) in snd_pmac_burgundy_read_volume()
151 volume[0] -= BURGUNDY_VOLUME_OFFSET; in snd_pmac_burgundy_read_volume()
153 volume[0] = 0; in snd_pmac_burgundy_read_volume()
154 volume[1] = (wvolume >> shift) & 0xff; in snd_pmac_burgundy_read_volume()
155 if (volume[1] >= BURGUNDY_VOLUME_OFFSET) in snd_pmac_burgundy_read_volume()
156 volume[1] -= BURGUNDY_VOLUME_OFFSET; in snd_pmac_burgundy_read_volume()
158 volume[1] = 0; in snd_pmac_burgundy_read_volume()
209 long *volume, int off) in snd_pmac_burgundy_write_volume_2b() argument
214 lvolume = volume[0] ? volume[0] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume_2b()
215 rvolume = volume[1] ? volume[1] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume_2b()
223 long *volume, int off) in snd_pmac_burgundy_read_volume_2b() argument
225 volume[0] = snd_pmac_burgundy_rcb(chip, address + off); in snd_pmac_burgundy_read_volume_2b()
226 if (volume[0] >= BURGUNDY_VOLUME_OFFSET) in snd_pmac_burgundy_read_volume_2b()
227 volume[0] -= BURGUNDY_VOLUME_OFFSET; in snd_pmac_burgundy_read_volume_2b()
229 volume[0] = 0; in snd_pmac_burgundy_read_volume_2b()
230 volume[1] = snd_pmac_burgundy_rcb(chip, address + off + 0x100); in snd_pmac_burgundy_read_volume_2b()
231 if (volume[1] >= BURGUNDY_VOLUME_OFFSET) in snd_pmac_burgundy_read_volume_2b()
232 volume[1] -= BURGUNDY_VOLUME_OFFSET; in snd_pmac_burgundy_read_volume_2b()
234 volume[1] = 0; in snd_pmac_burgundy_read_volume_2b()