Lines Matching refs:hw

45 static void set_pitch(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
46 static void set_volume(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
47 static void set_pan(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
48 static void set_fmmod(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
49 static void set_tremfreq(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
50 static void set_fm2frq2(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
51 static void set_filterQ(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
85 snd_emu8000_ops_setup(struct snd_emu8000 *hw) in snd_emu8000_ops_setup() argument
87 hw->emu->ops = emu8000_ops; in snd_emu8000_ops_setup()
99 struct snd_emu8000 *hw; in release_voice() local
101 hw = vp->hw; in release_voice()
103 EMU8000_DCYSUS_WRITE(hw, vp->ch, dcysusv); in release_voice()
105 EMU8000_DCYSUSV_WRITE(hw, vp->ch, dcysusv); in release_voice()
114 struct snd_emu8000 *hw; in terminate_voice() local
116 hw = vp->hw; in terminate_voice()
117 EMU8000_DCYSUSV_WRITE(hw, vp->ch, 0x807F); in terminate_voice()
126 struct snd_emu8000 *hw; in update_voice() local
128 hw = vp->hw; in update_voice()
130 set_volume(hw, vp); in update_voice()
132 set_pitch(hw, vp); in update_voice()
135 set_pan(hw, vp); in update_voice()
137 set_fmmod(hw, vp); in update_voice()
139 set_tremfreq(hw, vp); in update_voice()
141 set_fm2frq2(hw, vp); in update_voice()
143 set_filterQ(hw, vp); in update_voice()
161 struct snd_emu8000 *hw; in get_voice() local
175 hw = emu->hw; in get_voice()
196 val = (EMU8000_CVCF_READ(hw, vp->ch) >> 16) & 0xffff; in get_voice()
208 val = EMU8000_CCCA_READ(hw, vp->ch) & 0xffffff; in get_voice()
240 struct snd_emu8000 *hw; in start_voice() local
242 hw = vp->hw; in start_voice()
247 EMU8000_DCYSUSV_WRITE(hw, ch, 0x0080); in start_voice()
248 EMU8000_VTFT_WRITE(hw, ch, 0x0000FFFF); in start_voice()
249 EMU8000_CVCF_WRITE(hw, ch, 0x0000FFFF); in start_voice()
250 EMU8000_PTRX_WRITE(hw, ch, 0); in start_voice()
251 EMU8000_CPF_WRITE(hw, ch, 0); in start_voice()
254 set_pitch(hw, vp); in start_voice()
257 EMU8000_ENVVAL_WRITE(hw, ch, vp->reg.parm.moddelay); in start_voice()
258 EMU8000_ATKHLD_WRITE(hw, ch, vp->reg.parm.modatkhld); in start_voice()
259 EMU8000_DCYSUS_WRITE(hw, ch, vp->reg.parm.moddcysus); in start_voice()
260 EMU8000_ENVVOL_WRITE(hw, ch, vp->reg.parm.voldelay); in start_voice()
261 EMU8000_ATKHLDV_WRITE(hw, ch, vp->reg.parm.volatkhld); in start_voice()
266 set_volume(hw, vp); in start_voice()
269 EMU8000_PEFE_WRITE(hw, ch, vp->reg.parm.pefe); in start_voice()
272 EMU8000_LFO1VAL_WRITE(hw, ch, vp->reg.parm.lfo1delay); in start_voice()
273 EMU8000_LFO2VAL_WRITE(hw, ch, vp->reg.parm.lfo2delay); in start_voice()
276 set_fmmod(hw, vp); in start_voice()
278 set_tremfreq(hw, vp); in start_voice()
280 set_fm2frq2(hw, vp); in start_voice()
282 set_pan(hw, vp); in start_voice()
290 EMU8000_CSL_WRITE(hw, ch, temp); in start_voice()
296 EMU8000_CCCA_WRITE(hw, ch, temp); in start_voice()
299 EMU8000_00A0_WRITE(hw, ch, 0); in start_voice()
300 EMU8000_0080_WRITE(hw, ch, 0); in start_voice()
304 EMU8000_VTFT_WRITE(hw, ch, temp | vp->ftarget); in start_voice()
305 EMU8000_CVCF_WRITE(hw, ch, temp | 0xff00); in start_voice()
318 struct snd_emu8000 *hw; in trigger_voice() local
320 hw = vp->hw; in trigger_voice()
327 EMU8000_PTRX_WRITE(hw, ch, temp); in trigger_voice()
328 EMU8000_CPF_WRITE(hw, ch, vp->ptarget << 16); in trigger_voice()
329 EMU8000_DCYSUSV_WRITE(hw, ch, vp->reg.parm.voldcysus); in trigger_voice()
338 struct snd_emu8000 *hw; in reset_voice() local
340 hw = emu->hw; in reset_voice()
341 EMU8000_DCYSUSV_WRITE(hw, ch, 0x807F); in reset_voice()
342 snd_emu8000_tweak_voice(hw, ch); in reset_voice()
349 set_pitch(struct snd_emu8000 *hw, struct snd_emux_voice *vp) in set_pitch() argument
351 EMU8000_IP_WRITE(hw, vp->ch, vp->apitch); in set_pitch()
358 set_volume(struct snd_emu8000 *hw, struct snd_emux_voice *vp) in set_volume() argument
365 EMU8000_IFATN_WRITE(hw, vp->ch, ifatn); in set_volume()
372 set_pan(struct snd_emu8000 *hw, struct snd_emux_voice *vp) in set_pan() argument
377 EMU8000_PSST_WRITE(hw, vp->ch, temp); in set_pan()
383 set_fmmod(struct snd_emu8000 *hw, struct snd_emux_voice *vp) in set_fmmod() argument
396 EMU8000_FMMOD_WRITE(hw, vp->ch, fmmod); in set_fmmod()
401 set_tremfreq(struct snd_emu8000 *hw, struct snd_emux_voice *vp) in set_tremfreq() argument
403 EMU8000_TREMFRQ_WRITE(hw, vp->ch, vp->reg.parm.tremfrq); in set_tremfreq()
408 set_fm2frq2(struct snd_emu8000 *hw, struct snd_emux_voice *vp) in set_fm2frq2() argument
421 EMU8000_FM2FRQ2_WRITE(hw, vp->ch, fm2frq2); in set_fm2frq2()
426 set_filterQ(struct snd_emu8000 *hw, struct snd_emux_voice *vp) in set_filterQ() argument
429 addr = EMU8000_CCCA_READ(hw, vp->ch) & 0xffffff; in set_filterQ()
431 EMU8000_CCCA_WRITE(hw, vp->ch, addr); in set_filterQ()
462 struct snd_emu8000 *hw; in sysex() local
464 hw = emu->hw; in sysex()
468 hw->chorus_mode = chset->gs_chorus_mode; in sysex()
469 snd_emu8000_update_chorus_mode(hw); in sysex()
473 hw->reverb_mode = chset->gs_reverb_mode; in sysex()
474 snd_emu8000_update_reverb_mode(hw); in sysex()
487 struct snd_emu8000 *hw; in oss_ioctl() local
489 hw = emu->hw; in oss_ioctl()
493 hw->reverb_mode = p1; in oss_ioctl()
494 snd_emu8000_update_reverb_mode(hw); in oss_ioctl()
498 hw->chorus_mode = p1; in oss_ioctl()
499 snd_emu8000_update_chorus_mode(hw); in oss_ioctl()
507 hw->bass_level = p1; in oss_ioctl()
508 hw->treble_level = p2; in oss_ioctl()
509 snd_emu8000_update_equalizer(hw); in oss_ioctl()
532 struct snd_emu8000 *hw; in load_fx() local
533 hw = emu->hw; in load_fx()
541 return snd_emu8000_load_chorus_fx(hw, mode, buf, len); in load_fx()
543 return snd_emu8000_load_reverb_fx(hw, mode, buf, len); in load_fx()