• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/drivers/opl3/

Lines Matching defs:vp

145 	struct snd_opl3_voice *vp, *vp2;
172 vp = &opl3->voices[i];
174 if (vp->state == SNDRV_OPL3_ST_NOT_AVAIL)
179 voice_time = vp->time;
190 if (vp->state)
199 voice_time = (voice_time > vp->time) ?
200 voice_time : vp->time;
207 else if (vp->state)
211 if (vp->state)
249 struct snd_opl3_voice *vp = &opl3->voices[i];
250 if (vp->state > 0 && vp->note_off_check) {
251 if (vp->note_off == jiffies)
252 snd_opl3_note_off_unsafe(opl3, vp->note, 0,
253 vp->chan);
301 struct snd_opl3_voice *vp, *vp2;
406 vp = &opl3->voices[voice];
407 if (vp->state > 0) {
409 reg_val = vp->keyon_reg & ~OPL3_KEYON_BIT;
414 if (vp->state > 0) {
417 reg_val = vp->keyon_reg & ~OPL3_KEYON_BIT;
574 vp->time = opl3->use_time++;
575 vp->note = key;
576 vp->chan = chan;
579 vp->state = SNDRV_OPL3_ST_ON_4OP;
587 if (vp->state == SNDRV_OPL3_ST_ON_4OP) {
593 vp->state = SNDRV_OPL3_ST_ON_2OP;
624 struct snd_opl3_voice *vp, *vp2;
629 vp = &opl3->voices[voice];
646 opl3->command(opl3, opl3_reg, vp->keyon_reg);
649 vp->time = opl3->use_time++;
651 if (vp->state == SNDRV_OPL3_ST_ON_4OP) {
657 vp->state = SNDRV_OPL3_ST_OFF;
673 struct snd_opl3_voice *vp;
690 vp = &opl3->voices[voice];
691 if (vp->state > 0 && vp->chan == chan && vp->note == note) {
751 struct snd_opl3_voice *vp;
756 vp = &opl3->voices[voice];
757 if (vp->chan == NULL)
770 snd_opl3_calc_pitch(&fnum, &blocknum, vp->note, vp->chan);
776 vp->keyon_reg = blocknum;
785 vp->time = opl3->use_time++;
794 struct snd_opl3_voice *vp;
802 vp = &opl3->voices[voice];
803 if (vp->state > 0 && vp->chan == chan) {