Skip to content

Commit

Permalink
ALSA: emux: Add support of loading GUS-patch
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
tiwai committed Mar 26, 2019
1 parent 50e0908 commit e42dd3e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sound/synth/emux/emux_hwdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e42dd3e

Please sign in to comment.