forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/drivers/opl3/opl3_lib.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>,
34 * Hannu Savolainen 1993-1996,
....@@ -6,21 +7,6 @@
67 * Routines for control of AdLib FM cards (OPL2/OPL3/OPL4 chips)
78 *
89 * Most if code is ported from OSS/Lite.
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License as published by
12
- * the Free Software Foundation; either version 2 of the License, or
13
- * (at your option) any later version.
14
- *
15
- * This program is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- * GNU General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License
21
- * along with this program; if not, write to the Free Software
22
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
- *
2410 */
2511
2612 #include <sound/opl3.h>
....@@ -228,7 +214,7 @@
228214
229215 */
230216
231
-static struct snd_timer_hardware snd_opl3_timer1 =
217
+static const struct snd_timer_hardware snd_opl3_timer1 =
232218 {
233219 .flags = SNDRV_TIMER_HW_STOP,
234220 .resolution = 80000,
....@@ -237,7 +223,7 @@
237223 .stop = snd_opl3_timer1_stop,
238224 };
239225
240
-static struct snd_timer_hardware snd_opl3_timer2 =
226
+static const struct snd_timer_hardware snd_opl3_timer2 =
241227 {
242228 .flags = SNDRV_TIMER_HW_STOP,
243229 .resolution = 320000,
....@@ -346,7 +332,7 @@
346332 unsigned short hardware,
347333 struct snd_opl3 **ropl3)
348334 {
349
- static struct snd_device_ops ops = {
335
+ static const struct snd_device_ops ops = {
350336 .dev_free = snd_opl3_dev_free,
351337 };
352338 struct snd_opl3 *opl3;