Lines Matching refs:vol
187 extern unsigned short gus_linear_vol(int vol, int mainvol);
452 static void gus_voice_volume(unsigned int vol) in gus_voice_volume() argument
455 gus_write16(0x09, (unsigned short) (vol << 4)); in gus_voice_volume()
555 unsigned vol, prev_vol, phase; in step_envelope() local
580 vol = voices[voice].initial_volume * voices[voice].env_offset[phase] / 255; in step_envelope()
594 if (((vol - prev_vol) / 64) == 0) /* No significant volume change */ in step_envelope()
600 if (vol > prev_vol) in step_envelope()
602 if (vol >= (4096 - 64)) in step_envelope()
603 vol = 4096 - 65; in step_envelope()
604 gus_ramp_range(0, vol); in step_envelope()
609 if (vol <= 64) in step_envelope()
610 vol = 65; in step_envelope()
611 gus_ramp_range(vol, 4030); in step_envelope()
614 voices[voice].current_volume = vol; in step_envelope()
2774 int vol, val; in gus_default_mixer_ioctl() local
2798 vol = val & 0xff; in gus_default_mixer_ioctl()
2799 if (vol < 0) in gus_default_mixer_ioctl()
2800 vol = 0; in gus_default_mixer_ioctl()
2801 if (vol > 100) in gus_default_mixer_ioctl()
2802 vol = 100; in gus_default_mixer_ioctl()
2803 gus_mic_vol = vol; in gus_default_mixer_ioctl()
2805 val = vol | (vol << 8); in gus_default_mixer_ioctl()
2809 vol = val & 0xff; in gus_default_mixer_ioctl()
2810 if (vol < 0) in gus_default_mixer_ioctl()
2811 vol = 0; in gus_default_mixer_ioctl()
2812 if (vol > 100) in gus_default_mixer_ioctl()
2813 vol = 100; in gus_default_mixer_ioctl()
2814 gus_line_vol = vol; in gus_default_mixer_ioctl()
2816 val = vol | (vol << 8); in gus_default_mixer_ioctl()