forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/isa/sb/sb16_csp.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (c) 1999 by Uros Bizjak <uros@kss-loka.si>
34 * Takashi Iwai <tiwai@suse.de>
....@@ -6,21 +7,6 @@
67 *
78 * CSP microcode loader:
89 * alsa-tools/sb16_csp/
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 <linux/delay.h>
....@@ -116,7 +102,7 @@
116102 int snd_sb_csp_new(struct snd_sb *chip, int device, struct snd_hwdep ** rhwdep)
117103 {
118104 struct snd_sb_csp *p;
119
- int uninitialized_var(version);
105
+ int version;
120106 int err;
121107 struct snd_hwdep *hw;
122108
....@@ -1138,10 +1124,9 @@
11381124 static int init_proc_entry(struct snd_sb_csp * p, int device)
11391125 {
11401126 char name[16];
1141
- struct snd_info_entry *entry;
1127
+
11421128 sprintf(name, "cspD%d", device);
1143
- if (! snd_card_proc_new(p->chip->card, name, &entry))
1144
- snd_info_set_text_ops(entry, p, info_read);
1129
+ snd_card_ro_proc_new(p->chip->card, name, p, info_read);
11451130 return 0;
11461131 }
11471132