Lines Matching defs:volume
39 static void sample_volume(struct snd_gus_card *card, struct snd_gus_voice *voice, struct snd_seq_ev_volume *volume);
392 static void sample_volume(struct snd_gus_card *gus, struct snd_gus_voice *voice, struct snd_seq_ev_volume *volume)
394 if (volume->volume >= 0) {
395 volume->volume &= 0x3fff;
396 voice->gf1_volume = snd_gf1_lvol_to_gvol_raw(volume->volume << 2) << 4;
401 if (volume->lr >= 0) {
402 volume->lr &= 0x3fff;
404 voice->gf1_pan = (volume->lr >> 10) & 15;
414 set_enhanced_pan(gus, voice, volume->lr >> 7);