diff options
author | Jaroslav Kysela <perex@suse.cz> | 2004-11-29 11:06:58 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2004-11-29 11:06:58 +0100 |
commit | d5adf0ccf5b07f956821b70ecf53d2602fa4b274 (patch) | |
tree | a0de3d478973ba2eb6913f17231b46eda39a271e /sound | |
parent | 7e9f366aa4936933caf2356d56882146b4a23e17 (diff) | |
download | history-d5adf0ccf5b07f956821b70ecf53d2602fa4b274.tar.gz |
[ALSA] fix chorus/reverb FX loader
EMU8000 driver
Fixed the chorus/reverb FX loader callback.
The header bytes must be eliminated.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/isa/sb/emu8000_callback.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/isa/sb/emu8000_callback.c b/sound/isa/sb/emu8000_callback.c index 05565f31db1c9d..1cc4101a17a4b7 100644 --- a/sound/isa/sb/emu8000_callback.c +++ b/sound/isa/sb/emu8000_callback.c @@ -528,6 +528,10 @@ load_fx(snd_emux_t *emu, int type, int mode, const void __user *buf, long len) emu8000_t *hw; hw = emu->hw; + /* skip header */ + buf += 16; + len -= 16; + switch (type) { case SNDRV_EMU8000_LOAD_CHORUS_FX: return snd_emu8000_load_chorus_fx(hw, mode, buf, len); |