hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/include/sound/initval.h
....@@ -1,24 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 #ifndef __SOUND_INITVAL_H
23 #define __SOUND_INITVAL_H
34
45 /*
56 * Init values for soundcard modules
67 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program; if not, write to the Free Software
20
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
- *
228 */
239
2410 #define SNDRV_AUTO_PORT 1
....@@ -51,7 +37,7 @@
5137 #define SNDRV_DEFAULT_PTR SNDRV_DEFAULT_STR
5238
5339 #ifdef SNDRV_LEGACY_FIND_FREE_IOPORT
54
-static long snd_legacy_find_free_ioport(long *port_table, long size)
40
+static long snd_legacy_find_free_ioport(const long *port_table, long size)
5541 {
5642 while (*port_table != -1) {
5743 if (request_region(*port_table, size, "ALSA test")) {
....@@ -72,7 +58,7 @@
7258 return IRQ_HANDLED;
7359 }
7460
75
-static int snd_legacy_find_free_irq(int *irq_table)
61
+static int snd_legacy_find_free_irq(const int *irq_table)
7662 {
7763 while (*irq_table != -1) {
7864 if (!request_irq(*irq_table, snd_legacy_empty_irq_handler,
....@@ -88,7 +74,7 @@
8874 #endif
8975
9076 #ifdef SNDRV_LEGACY_FIND_FREE_DMA
91
-static int snd_legacy_find_free_dma(int *dma_table)
77
+static int snd_legacy_find_free_dma(const int *dma_table)
9278 {
9379 while (*dma_table != -1) {
9480 if (!request_dma(*dma_table, "ALSA Test DMA")) {