| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | #ifndef __SOUND_INITVAL_H |
|---|
| 2 | 3 | #define __SOUND_INITVAL_H |
|---|
| 3 | 4 | |
|---|
| 4 | 5 | /* |
|---|
| 5 | 6 | * Init values for soundcard modules |
|---|
| 6 | 7 | * 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 | | - * |
|---|
| 22 | 8 | */ |
|---|
| 23 | 9 | |
|---|
| 24 | 10 | #define SNDRV_AUTO_PORT 1 |
|---|
| .. | .. |
|---|
| 51 | 37 | #define SNDRV_DEFAULT_PTR SNDRV_DEFAULT_STR |
|---|
| 52 | 38 | |
|---|
| 53 | 39 | #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) |
|---|
| 55 | 41 | { |
|---|
| 56 | 42 | while (*port_table != -1) { |
|---|
| 57 | 43 | if (request_region(*port_table, size, "ALSA test")) { |
|---|
| .. | .. |
|---|
| 72 | 58 | return IRQ_HANDLED; |
|---|
| 73 | 59 | } |
|---|
| 74 | 60 | |
|---|
| 75 | | -static int snd_legacy_find_free_irq(int *irq_table) |
|---|
| 61 | +static int snd_legacy_find_free_irq(const int *irq_table) |
|---|
| 76 | 62 | { |
|---|
| 77 | 63 | while (*irq_table != -1) { |
|---|
| 78 | 64 | if (!request_irq(*irq_table, snd_legacy_empty_irq_handler, |
|---|
| .. | .. |
|---|
| 88 | 74 | #endif |
|---|
| 89 | 75 | |
|---|
| 90 | 76 | #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) |
|---|
| 92 | 78 | { |
|---|
| 93 | 79 | while (*dma_table != -1) { |
|---|
| 94 | 80 | if (!request_dma(*dma_table, "ALSA Test DMA")) { |
|---|