Lines Matching full:volume
121 * Burgundy volume: 0 - 100, stereo, word reg
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()
206 * Burgundy volume: 0 - 100, stereo, 2-byte reg
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()
459 BURGUNDY_VOLUME_W("Master Playback Volume", 0,
461 BURGUNDY_VOLUME_W("CD Capture Volume", 0,
463 BURGUNDY_VOLUME_2B("Input Capture Volume", 0,
465 BURGUNDY_VOLUME_2B("Mixer Playback Volume", 0,
467 BURGUNDY_VOLUME_B("CD Gain Capture Volume", 0,
487 BURGUNDY_VOLUME_W("Line in Capture Volume", 0,
489 BURGUNDY_VOLUME_W("Mic Capture Volume", 0,
491 BURGUNDY_VOLUME_B("Line in Gain Capture Volume", 0,
493 BURGUNDY_VOLUME_B("Mic Gain Capture Volume", 0,
495 BURGUNDY_VOLUME_B("Speaker Playback Volume", 0,
497 BURGUNDY_VOLUME_B("Line out Playback Volume", 0,
499 BURGUNDY_VOLUME_B("Headphone Playback Volume", 0,
513 BURGUNDY_VOLUME_W("Line in Capture Volume", 0,
515 BURGUNDY_VOLUME_B("Line in Gain Capture Volume", 0,
517 BURGUNDY_VOLUME_B("Speaker Playback Volume", 0,
519 BURGUNDY_VOLUME_B("Line out Playback Volume", 0,