hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/sound/synth/emux/emux_hwdep.c
....@@ -1,22 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Interface for hwdep device
34 *
45 * Copyright (C) 2004 Takashi Iwai <tiwai@suse.de>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
- *
206 */
217
228 #include <sound/core.h>
....@@ -39,6 +25,11 @@
3925 if (copy_from_user(&patch, arg, sizeof(patch)))
4026 return -EFAULT;
4127
28
+ if (patch.key == GUS_PATCH)
29
+ return snd_soundfont_load_guspatch(emu->sflist, arg,
30
+ patch.len + sizeof(patch),
31
+ TMP_CLIENT_ID);
32
+
4233 if (patch.type >= SNDRV_SFNT_LOAD_INFO &&
4334 patch.type <= SNDRV_SFNT_PROBE_DATA) {
4435 err = snd_soundfont_load(emu->sflist, arg, patch.len + sizeof(patch), TMP_CLIENT_ID);