int dcysusv;
emu8000_t *hw;
- hw = snd_magic_cast(emu8000_t, vp->hw, return);
+ hw = vp->hw;
dcysusv = 0x8000 | (unsigned char)vp->reg.parm.modrelease;
EMU8000_DCYSUS_WRITE(hw, vp->ch, dcysusv);
dcysusv = 0x8000 | (unsigned char)vp->reg.parm.volrelease;
{
emu8000_t *hw;
- hw = snd_magic_cast(emu8000_t, vp->hw, return);
+ hw = vp->hw;
EMU8000_DCYSUSV_WRITE(hw, vp->ch, 0x807F);
}
{
emu8000_t *hw;
- hw = snd_magic_cast(emu8000_t, vp->hw, return);
+ hw = vp->hw;
if (update & SNDRV_EMUX_UPDATE_VOLUME)
set_volume(hw, vp);
if (update & SNDRV_EMUX_UPDATE_PITCH)
} best[END];
struct best *bp;
- hw = snd_magic_cast(emu8000_t, emu->hw, return NULL);
+ hw = emu->hw;
for (i = 0; i < END; i++) {
best[i].time = (unsigned int)(-1); /* XXX MAX_?INT really */;
snd_midi_channel_t *chan;
emu8000_t *hw;
- hw = snd_magic_cast(emu8000_t, vp->hw, return -EINVAL);
+ hw = vp->hw;
ch = vp->ch;
chan = vp->chan;
unsigned int temp;
emu8000_t *hw;
- hw = snd_magic_cast(emu8000_t, vp->hw, return);
+ hw = vp->hw;
/* set reverb and pitch target */
temp = vp->reg.parm.reverb;
{
emu8000_t *hw;
- hw = snd_magic_cast(emu8000_t, emu->hw, return);
+ hw = emu->hw;
EMU8000_DCYSUSV_WRITE(hw, ch, 0x807F);
snd_emu8000_tweak_voice(hw, ch);
}
{
emu8000_t *hw;
- hw = snd_magic_cast(emu8000_t, emu->hw, return);
+ hw = emu->hw;
switch (parsed) {
case SNDRV_MIDI_SYSEX_GS_CHORUS_MODE:
{
emu8000_t *hw;
- hw = snd_magic_cast(emu8000_t, emu->hw, return -EINVAL);
+ hw = emu->hw;
switch (cmd) {
case _EMUX_OSS_REVERB_MODE:
load_fx(snd_emux_t *emu, int type, int mode, const void __user *buf, long len)
{
emu8000_t *hw;
- hw = snd_magic_cast(emu8000_t, emu->hw, return -EINVAL);
+ hw = emu->hw;
switch (type) {
case SNDRV_EMU8000_LOAD_CHORUS_FX: