Lines Matching defs:chan
86 effect_set_byte(unsigned char *valp, struct snd_midi_channel *chan, int type)
89 struct snd_emux_effect_table *fx = chan->private;
107 effect_set_word(unsigned short *valp, struct snd_midi_channel *chan, int type)
110 struct snd_emux_effect_table *fx = chan->private;
124 effect_get_offset(struct snd_midi_channel *chan, int lo, int hi, int mode)
127 struct snd_emux_effect_table *fx = chan->private;
143 struct snd_midi_channel *chan, int type, int val)
155 snd_emux_send_effect(port, chan, type, val, mode);
163 snd_emux_send_effect(struct snd_emux_port *port, struct snd_midi_channel *chan,
174 fx = chan->private;
198 if (!STATE_IS_PLAYING(vp->state) || vp->chan != chan)
204 effect_set_byte(srcp, chan, type);
207 effect_set_word((unsigned short*)srcp, chan, type);
213 snd_emux_update_channel(port, chan, parm_defs[type].update);
221 struct snd_midi_channel *chan = vp->chan;
226 if (! (fx = chan->private))
243 effect_set_byte(srcp, chan, i);
245 effect_set_word((unsigned short*)srcp, chan, i);
249 vp->reg.start += effect_get_offset(chan, EMUX_FX_SAMPLE_START,
253 vp->reg.loopstart += effect_get_offset(chan, EMUX_FX_LOOP_START,
257 vp->reg.loopend += effect_get_offset(chan, EMUX_FX_LOOP_END,