diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-03-26 17:32:02 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-03-26 17:32:02 +0100 |
commit | e42dd3ee3f9c6007c569386a8477a19d3e7503f9 (patch) | |
tree | 5ffc84cc3a9cf4b5338eccd2cb0941cc91ad5b91 /sound | |
parent | 50e0908412e6937ebf38b1edae35035a550a6f09 (diff) | |
download | linux-e42dd3ee3f9c6007c569386a8477a19d3e7503f9.tar.bz2 |
ALSA: emux: Add support of loading GUS-patch
It's a feature request for the ancient sutff, but it's still valid;
the loading of a GUS-patch isn't available via hwdep device although
it's supported over OSS sequencer. The only missing piece is the call
of snd_soundfont_load_guspatch() in synth emux hwdep code.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/synth/emux/emux_hwdep.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/synth/emux/emux_hwdep.c b/sound/synth/emux/emux_hwdep.c index d9fcae071b47..fae48d108b97 100644 --- a/sound/synth/emux/emux_hwdep.c +++ b/sound/synth/emux/emux_hwdep.c @@ -39,6 +39,11 @@ snd_emux_hwdep_load_patch(struct snd_emux *emu, void __user *arg) if (copy_from_user(&patch, arg, sizeof(patch))) return -EFAULT; + if (patch.key == GUS_PATCH) + return snd_soundfont_load_guspatch(emu->sflist, arg, + patch.len + sizeof(patch), + TMP_CLIENT_ID); + if (patch.type >= SNDRV_SFNT_LOAD_INFO && patch.type <= SNDRV_SFNT_PROBE_DATA) { err = snd_soundfont_load(emu->sflist, arg, patch.len + sizeof(patch), TMP_CLIENT_ID); |