• Home
  • Raw
  • Download

Lines Matching refs:ch

91 			int ch;  in snd_emu10k1_synth_get_voice()  local
93 if ((ch = vp->ch) < 0) { in snd_emu10k1_synth_get_voice()
101 vp->ch = -1; in snd_emu10k1_synth_get_voice()
103 return ch; in snd_emu10k1_synth_get_voice()
123 snd_emu10k1_ptr_write(hw, DCYSUSM, vp->ch, dcysusv); in release_voice()
125 snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, dcysusv); in release_voice()
140 snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, 0x807f | DCYSUSV_CHANNELENABLE_MASK); in terminate_voice()
162 if (hw && (vp->ch >= 0)) { in free_voice()
163 snd_emu10k1_ptr_write(hw, IFATN, vp->ch, 0xff00); in free_voice()
164 snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, 0x807f | DCYSUSV_CHANNELENABLE_MASK); in free_voice()
166 snd_emu10k1_ptr_write(hw, VTFT, vp->ch, 0xffff); in free_voice()
167 snd_emu10k1_ptr_write(hw, CVCF, vp->ch, 0xffff); in free_voice()
168 snd_emu10k1_voice_free(hw, &hw->voices[vp->ch]); in free_voice()
170 vp->ch = -1; in free_voice()
185 snd_emu10k1_ptr_write(hw, IFATN_ATTENUATION, vp->ch, vp->avol); in update_voice()
187 snd_emu10k1_ptr_write(hw, IP, vp->ch, vp->apitch); in update_voice()
189 snd_emu10k1_ptr_write(hw, PTRX_FXSENDAMOUNT_A, vp->ch, vp->apan); in update_voice()
190 snd_emu10k1_ptr_write(hw, PTRX_FXSENDAMOUNT_B, vp->ch, vp->aaux); in update_voice()
195 snd_emu10k1_ptr_write(hw, TREMFRQ, vp->ch, vp->reg.parm.tremfrq); in update_voice()
230 if (vp->ch < 0) { in lookup_voices()
241 val = snd_emu10k1_ptr_read(hw, CVCF_CURRENTVOL, vp->ch); in lookup_voices()
256 val = snd_emu10k1_ptr_read(hw, CCCA_CURRADDR, vp->ch); in lookup_voices()
287 if (vp->ch < 0) { in get_voice()
292 vp->ch = hwvoice->number; in get_voice()
310 int ch; in start_voice() local
317 ch = vp->ch; in start_voice()
318 if (snd_BUG_ON(ch < 0)) in start_voice()
341 snd_emu10k1_ptr_write(hw, A_FXRT1, ch, temp); in start_voice()
345 snd_emu10k1_ptr_write(hw, FXRT, ch, temp); in start_voice()
349 snd_emu10k1_ptr_write(hw, DCYSUSV, ch, 0x0000); in start_voice()
350 snd_emu10k1_ptr_write(hw, VTFT, ch, 0x0000FFFF); in start_voice()
351 snd_emu10k1_ptr_write(hw, CVCF, ch, 0x0000FFFF); in start_voice()
352 snd_emu10k1_ptr_write(hw, PTRX, ch, 0); in start_voice()
353 snd_emu10k1_ptr_write(hw, CPF, ch, 0); in start_voice()
356 snd_emu10k1_ptr_write(hw, IP, vp->ch, vp->apitch); in start_voice()
359 snd_emu10k1_ptr_write(hw, ENVVAL, ch, vp->reg.parm.moddelay); in start_voice()
360 snd_emu10k1_ptr_write(hw, ATKHLDM, ch, vp->reg.parm.modatkhld); in start_voice()
361 snd_emu10k1_ptr_write(hw, DCYSUSM, ch, vp->reg.parm.moddcysus); in start_voice()
362 snd_emu10k1_ptr_write(hw, ENVVOL, ch, vp->reg.parm.voldelay); in start_voice()
363 snd_emu10k1_ptr_write(hw, ATKHLDV, ch, vp->reg.parm.volatkhld); in start_voice()
369 snd_emu10k1_ptr_write(hw, IFATN, vp->ch, temp); in start_voice()
372 snd_emu10k1_ptr_write(hw, PEFE, ch, vp->reg.parm.pefe); in start_voice()
375 snd_emu10k1_ptr_write(hw, LFOVAL1, ch, vp->reg.parm.lfo1delay); in start_voice()
376 snd_emu10k1_ptr_write(hw, LFOVAL2, ch, vp->reg.parm.lfo2delay); in start_voice()
381 snd_emu10k1_ptr_write(hw, TREMFRQ, vp->ch, vp->reg.parm.tremfrq); in start_voice()
390 snd_emu10k1_ptr_write(hw, PSST, vp->ch, (temp << 24) | addr); in start_voice()
398 snd_emu10k1_ptr_write(hw, DSL, ch, temp); in start_voice()
401 snd_emu10k1_ptr_write(hw, Z1, ch, 0); in start_voice()
402 snd_emu10k1_ptr_write(hw, Z2, ch, 0); in start_voice()
406 snd_emu10k1_ptr_write(hw, MAPA, ch, temp); in start_voice()
407 snd_emu10k1_ptr_write(hw, MAPB, ch, temp); in start_voice()
421 snd_emu10k1_ptr_write(hw, CCR, ch, 0x1c << 16); in start_voice()
422 snd_emu10k1_ptr_write(hw, CDE, ch, sample); in start_voice()
423 snd_emu10k1_ptr_write(hw, CDF, ch, sample); in start_voice()
427 snd_emu10k1_ptr_write(hw, MAPA, ch, temp); in start_voice()
428 snd_emu10k1_ptr_write(hw, MAPB, ch, temp); in start_voice()
434 snd_emu10k1_ptr_write(hw, CCR, ch, val); in start_voice()
450 snd_emu10k1_ptr_write(hw, CCCA, ch, temp); in start_voice()
454 snd_emu10k1_ptr_write(hw, VTFT, ch, temp | vp->ftarget); in start_voice()
455 snd_emu10k1_ptr_write(hw, CVCF, ch, temp | 0xff00); in start_voice()
482 snd_emu10k1_ptr_write(hw, PTRX, vp->ch, temp); in trigger_voice()
485 snd_emu10k1_ptr_write(hw, CPF, vp->ch, ptarget); in trigger_voice()
488 snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, vp->reg.parm.voldcysus|DCYSUSV_CHANNELENABLE_MASK); in trigger_voice()
508 snd_emu10k1_ptr_write(hw, FMMOD, vp->ch, fmmod); in set_fmmod()
526 snd_emu10k1_ptr_write(hw, FM2FRQ2, vp->ch, fm2frq2); in set_fm2frq2()
534 val = snd_emu10k1_ptr_read(hw, CCCA, vp->ch) & ~CCCA_RESONANCE; in set_filterQ()
536 snd_emu10k1_ptr_write(hw, CCCA, vp->ch, val); in set_filterQ()