Changeset 679 for GPL/trunk/alsa-kernel/include/sound/initval.h
- Timestamp:
- Mar 18, 2021, 8:57:36 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-linux-3.2.102 (added) merged: 611-614 /GPL/branches/uniaud32-next (added) merged: 615-678
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/include/sound/initval.h
r598 r679 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 1 2 #ifndef __SOUND_INITVAL_H 2 3 #define __SOUND_INITVAL_H … … 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 modify9 * it under the terms of the GNU General Public License as published by10 * the Free Software Foundation; either version 2 of the License, or11 * (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 of15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the16 * GNU General Public License for more details.17 *18 * You should have received a copy of the GNU General Public License19 * along with this program; if not, write to the Free Software20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA21 *22 8 */ 23 9 … … 36 22 #define MODULE_DEVICES(val) 37 23 #define MODULE_PARM_SYNTAX(id, val) 38 #define module_param_array(name, type, nump, perm)39 #define module_param(name, type, perm)40 24 #else 41 25 #define MODULE_CLASSES(val) MODULE_GENERIC_STRING(info_classes, val) … … 120 104 #define SNDRV_PORT_DESC SNDRV_ENABLED ",allows:{{0,0xffff}},base:16" 121 105 106 #ifdef SNDRV_LEGACY_FIND_FREE_IOPORT 107 static long snd_legacy_find_free_ioport(const long *port_table, long size) 108 { 109 while (*port_table != -1) { 110 if (request_region(*port_table, size, "ALSA test")) { 111 release_region(*port_table, size); 112 return *port_table; 113 } 114 port_table++; 115 } 116 return -1; 117 } 118 #endif 119 122 120 #ifdef SNDRV_LEGACY_FIND_FREE_IRQ 123 121 #include <linux/interrupt.h> … … 128 126 } 129 127 130 static int snd_legacy_find_free_irq( int *irq_table)128 static int snd_legacy_find_free_irq(const int *irq_table) 131 129 { 132 130 while (*irq_table != -1) { 133 131 if (!request_irq(*irq_table, snd_legacy_empty_irq_handler, 134 IRQF_ DISABLED | IRQF_PROBE_SHARED, "ALSA Test IRQ",132 IRQF_PROBE_SHARED, "ALSA Test IRQ", 135 133 (void *) irq_table)) { 136 134 free_irq(*irq_table, (void *) irq_table); … … 144 142 145 143 #ifdef SNDRV_LEGACY_FIND_FREE_DMA 146 static int snd_legacy_find_free_dma( int *dma_table)144 static int snd_legacy_find_free_dma(const int *dma_table) 147 145 { 148 146 while (*dma_table != -1) {
Note:
See TracChangeset
for help on using the changeset viewer.