Lines Matching refs:volume
137 long *volume, int shift) in snd_pmac_burgundy_write_volume() argument
141 if (volume[0] < 0 || volume[0] > 100 || in snd_pmac_burgundy_write_volume()
142 volume[1] < 0 || volume[1] > 100) in snd_pmac_burgundy_write_volume()
144 lvolume = volume[0] ? volume[0] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume()
145 rvolume = volume[1] ? volume[1] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume()
156 long *volume, int shift) in snd_pmac_burgundy_read_volume() argument
162 volume[0] = wvolume & 0xff; in snd_pmac_burgundy_read_volume()
163 if (volume[0] >= BURGUNDY_VOLUME_OFFSET) in snd_pmac_burgundy_read_volume()
164 volume[0] -= BURGUNDY_VOLUME_OFFSET; in snd_pmac_burgundy_read_volume()
166 volume[0] = 0; in snd_pmac_burgundy_read_volume()
167 volume[1] = (wvolume >> shift) & 0xff; in snd_pmac_burgundy_read_volume()
168 if (volume[1] >= BURGUNDY_VOLUME_OFFSET) in snd_pmac_burgundy_read_volume()
169 volume[1] -= BURGUNDY_VOLUME_OFFSET; in snd_pmac_burgundy_read_volume()
171 volume[1] = 0; in snd_pmac_burgundy_read_volume()
222 long *volume, int off) in snd_pmac_burgundy_write_volume_2b() argument
227 lvolume = volume[0] ? volume[0] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume_2b()
228 rvolume = volume[1] ? volume[1] + BURGUNDY_VOLUME_OFFSET : 0; in snd_pmac_burgundy_write_volume_2b()
236 long *volume, int off) in snd_pmac_burgundy_read_volume_2b() argument
238 volume[0] = snd_pmac_burgundy_rcb(chip, address + off); in snd_pmac_burgundy_read_volume_2b()
239 if (volume[0] >= BURGUNDY_VOLUME_OFFSET) in snd_pmac_burgundy_read_volume_2b()
240 volume[0] -= BURGUNDY_VOLUME_OFFSET; in snd_pmac_burgundy_read_volume_2b()
242 volume[0] = 0; in snd_pmac_burgundy_read_volume_2b()
243 volume[1] = snd_pmac_burgundy_rcb(chip, address + off + 0x100); in snd_pmac_burgundy_read_volume_2b()
244 if (volume[1] >= BURGUNDY_VOLUME_OFFSET) in snd_pmac_burgundy_read_volume_2b()
245 volume[1] -= BURGUNDY_VOLUME_OFFSET; in snd_pmac_burgundy_read_volume_2b()
247 volume[1] = 0; in snd_pmac_burgundy_read_volume_2b()