forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/isa/sb/sb_common.c
....@@ -1,23 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
34 * Uros Bizjak <uros@kss-loka.si>
45 *
56 * Lowlevel routines for control of Sound Blaster cards
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this program; if not, write to the Free Software
19
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
- *
217 */
228
239 #include <linux/delay.h>
....@@ -94,7 +80,7 @@
9480
9581 static int snd_sbdsp_version(struct snd_sb * chip)
9682 {
97
- unsigned int result = -ENODEV;
83
+ unsigned int result;
9884
9985 snd_sbdsp_command(chip, SB_DSP_GET_VERSION);
10086 result = (short) snd_sbdsp_get_byte(chip) << 8;
....@@ -218,7 +204,7 @@
218204 {
219205 struct snd_sb *chip;
220206 int err;
221
- static struct snd_device_ops ops = {
207
+ static const struct snd_device_ops ops = {
222208 .dev_free = snd_sbdsp_dev_free,
223209 };
224210
....@@ -247,6 +233,7 @@
247233 return -EBUSY;
248234 }
249235 chip->irq = irq;
236
+ card->sync_irq = chip->irq;
250237
251238 if (hardware == SB_HW_ALS4000)
252239 goto __skip_allocation;