Lines Matching refs:volume

125 			       long *volume, int shift)  in snd_pmac_burgundy_write_volume()  argument
129 if (volume[0] < 0 || volume[0] > 100 || in snd_pmac_burgundy_write_volume()
130 volume[1] < 0 || volume[1] > 100) in snd_pmac_burgundy_write_volume()
132 lvolume = volume[0] ? volume[0] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume()
133 rvolume = volume[1] ? volume[1] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume()
144 long *volume, int shift) in snd_pmac_burgundy_read_volume() argument
150 volume[0] = wvolume & 0xff; in snd_pmac_burgundy_read_volume()
151 if (volume[0] >= BURGUNDY_VOLUME_OFFSET) in snd_pmac_burgundy_read_volume()
152 volume[0] -= BURGUNDY_VOLUME_OFFSET; in snd_pmac_burgundy_read_volume()
154 volume[0] = 0; in snd_pmac_burgundy_read_volume()
155 volume[1] = (wvolume >> shift) & 0xff; in snd_pmac_burgundy_read_volume()
156 if (volume[1] >= BURGUNDY_VOLUME_OFFSET) in snd_pmac_burgundy_read_volume()
157 volume[1] -= BURGUNDY_VOLUME_OFFSET; in snd_pmac_burgundy_read_volume()
159 volume[1] = 0; in snd_pmac_burgundy_read_volume()
210 long *volume, int off) in snd_pmac_burgundy_write_volume_2b() argument
215 lvolume = volume[0] ? volume[0] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume_2b()
216 rvolume = volume[1] ? volume[1] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume_2b()
224 long *volume, int off) in snd_pmac_burgundy_read_volume_2b() argument
226 volume[0] = snd_pmac_burgundy_rcb(chip, address + off); in snd_pmac_burgundy_read_volume_2b()
227 if (volume[0] >= BURGUNDY_VOLUME_OFFSET) in snd_pmac_burgundy_read_volume_2b()
228 volume[0] -= BURGUNDY_VOLUME_OFFSET; in snd_pmac_burgundy_read_volume_2b()
230 volume[0] = 0; in snd_pmac_burgundy_read_volume_2b()
231 volume[1] = snd_pmac_burgundy_rcb(chip, address + off + 0x100); in snd_pmac_burgundy_read_volume_2b()
232 if (volume[1] >= BURGUNDY_VOLUME_OFFSET) in snd_pmac_burgundy_read_volume_2b()
233 volume[1] -= BURGUNDY_VOLUME_OFFSET; in snd_pmac_burgundy_read_volume_2b()
235 volume[1] = 0; in snd_pmac_burgundy_read_volume_2b()