Lines Matching refs:vp
129 struct snd_opl3_voice *vp, *vp2; in opl3_get_voice() local
156 vp = &opl3->voices[i]; in opl3_get_voice()
158 if (vp->state == SNDRV_OPL3_ST_NOT_AVAIL) in opl3_get_voice()
163 voice_time = vp->time; in opl3_get_voice()
174 if (vp->state) in opl3_get_voice()
190 else if (vp->state) in opl3_get_voice()
194 if (vp->state) in opl3_get_voice()
232 struct snd_opl3_voice *vp = &opl3->voices[i]; in snd_opl3_timer_func() local
233 if (vp->state > 0 && vp->note_off_check) { in snd_opl3_timer_func()
234 if (vp->note_off == jiffies) in snd_opl3_timer_func()
235 snd_opl3_note_off_unsafe(opl3, vp->note, 0, in snd_opl3_timer_func()
236 vp->chan); in snd_opl3_timer_func()
281 struct snd_opl3_voice *vp, *vp2; in snd_opl3_note_on() local
392 vp = &opl3->voices[voice]; in snd_opl3_note_on()
393 if (vp->state > 0) { in snd_opl3_note_on()
395 reg_val = vp->keyon_reg & ~OPL3_KEYON_BIT; in snd_opl3_note_on()
403 reg_val = vp->keyon_reg & ~OPL3_KEYON_BIT; in snd_opl3_note_on()
560 vp->time = opl3->use_time++; in snd_opl3_note_on()
561 vp->note = key; in snd_opl3_note_on()
562 vp->chan = chan; in snd_opl3_note_on()
565 vp->state = SNDRV_OPL3_ST_ON_4OP; in snd_opl3_note_on()
573 if (vp->state == SNDRV_OPL3_ST_ON_4OP) { in snd_opl3_note_on()
579 vp->state = SNDRV_OPL3_ST_ON_2OP; in snd_opl3_note_on()
610 struct snd_opl3_voice *vp, *vp2; in snd_opl3_kill_voice() local
615 vp = &opl3->voices[voice]; in snd_opl3_kill_voice()
632 opl3->command(opl3, opl3_reg, vp->keyon_reg); in snd_opl3_kill_voice()
635 vp->time = opl3->use_time++; in snd_opl3_kill_voice()
637 if (vp->state == SNDRV_OPL3_ST_ON_4OP) { in snd_opl3_kill_voice()
643 vp->state = SNDRV_OPL3_ST_OFF; in snd_opl3_kill_voice()
659 struct snd_opl3_voice *vp; in snd_opl3_note_off_unsafe() local
676 vp = &opl3->voices[voice]; in snd_opl3_note_off_unsafe()
677 if (vp->state > 0 && vp->chan == chan && vp->note == note) { in snd_opl3_note_off_unsafe()
731 struct snd_opl3_voice *vp; in snd_opl3_update_pitch() local
736 vp = &opl3->voices[voice]; in snd_opl3_update_pitch()
737 if (vp->chan == NULL) in snd_opl3_update_pitch()
750 snd_opl3_calc_pitch(&fnum, &blocknum, vp->note, vp->chan); in snd_opl3_update_pitch()
756 vp->keyon_reg = blocknum; in snd_opl3_update_pitch()
765 vp->time = opl3->use_time++; in snd_opl3_update_pitch()
774 struct snd_opl3_voice *vp; in snd_opl3_pitch_ctrl() local
782 vp = &opl3->voices[voice]; in snd_opl3_pitch_ctrl()
783 if (vp->state > 0 && vp->chan == chan) { in snd_opl3_pitch_ctrl()