Changeset 587 for GPL/trunk/alsa-kernel/include/sound/initval.h
- Timestamp:
- Jun 9, 2016, 10:38:13 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/include/sound/initval.h
r398 r587 22 22 */ 23 23 24 #ifdef TARGET_OS2 24 25 #ifndef MODULE_GENERIC_STRING 25 26 #ifdef MODULE … … 32 33 #endif 33 34 34 #ifdef TARGET_OS2 35 #define MODULE_CLASSES(val) 36 #define MODULE_DEVICES(val) 37 #define MODULE_PARM_SYNTAX(id, val) 35 #define MODULE_CLASSES(val) 36 #define MODULE_DEVICES(val) 37 #define MODULE_PARM_SYNTAX(id, val) 38 38 #define module_param_array(name, type, nump, perm) 39 39 #define module_param(name, type, perm) … … 52 52 #define module_param(name, type, perm) \ 53 53 MODULE_PARM(name, SNDRV_MODULE_TYPE_##type) 54 55 54 #endif 56 55 56 #ifndef TARGET_OS2 57 #define SNDRV_AUTO_PORT 1 58 #else 57 59 #define SNDRV_AUTO_PORT 0xffff 60 #endif 58 61 #define SNDRV_AUTO_IRQ 0xffff 59 62 #define SNDRV_AUTO_DMA 0xffff … … 75 78 #define SNDRV_DEFAULT_ENABLE { 1,1,1,1,1,1,1,1 } 76 79 #define SNDRV_DEFAULT_ENABLE_PNP SNDRV_DEFAULT_ENABLE 80 #ifdef CONFIG_PNP 81 #define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE_PNP 82 #else 83 #define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE 84 #endif 77 85 #define SNDRV_DEFAULT_PORT { REPEAT_SNDRV(-1) } 78 86 #define SNDRV_DEFAULT_IRQ { REPEAT_SNDRV(SNDRV_AUTO_IRQ) } … … 83 91 #define SNDDRV_DEFAULT_PCM_SUBSTREAMS {REPEAT_SNDRV(8)}; 84 92 #define SNDDRV_DEFAULT_MIDI_DEVS {REPEAT_SNDRV(4)}; 85 #else86 #define SNDRV_DEFAULT_IDX { [0 ... (SNDRV_CARDS-1)] = -1 }87 #define SNDRV_DEFAULT_STR { [0 ... (SNDRV_CARDS-1)] = NULL }88 #define SNDRV_DEFAULT_ENABLE { 1, [1 ... (SNDRV_CARDS-1)] = 0 }89 #define SNDRV_DEFAULT_ENABLE_PNP { [0 ... (SNDRV_CARDS-1)] = 1 }90 #define SNDRV_DEFAULT_PORT { SNDRV_AUTO_PORT, [1 ... (SNDRV_CARDS-1)] = -1 }91 #define SNDRV_DEFAULT_IRQ { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_IRQ }92 #define SNDRV_DEFAULT_DMA { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_DMA }93 #define SNDRV_DEFAULT_DMA_SIZE { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_DMA_SIZE }94 #define SNDRV_DEFAULT_PTR SNDRV_DEFAULT_STR95 #endif96 97 #ifdef CONFIG_PNP98 #define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE_PNP99 #else100 #define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE101 #endif102 93 103 94 #define SNDRV_BOOLEAN_TRUE_DESC "allows:{{0,Disabled},{1,Enabled}},default:1,dialog:check" … … 119 110 #define SNDRV_PORT12_DESC SNDRV_ENABLED ",allows:{{0,0x3fff}},base:16" 120 111 #define SNDRV_PORT_DESC SNDRV_ENABLED ",allows:{{0,0xffff}},base:16" 112 #else 113 #define SNDRV_DEFAULT_IDX { [0 ... (SNDRV_CARDS-1)] = -1 } 114 #define SNDRV_DEFAULT_STR { [0 ... (SNDRV_CARDS-1)] = NULL } 115 #define SNDRV_DEFAULT_ENABLE { 1, [1 ... (SNDRV_CARDS-1)] = 0 } 116 #define SNDRV_DEFAULT_ENABLE_PNP { [0 ... (SNDRV_CARDS-1)] = 1 } 117 #ifdef CONFIG_PNP 118 #define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE_PNP 119 #else 120 #define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE 121 #endif 122 #define SNDRV_DEFAULT_PORT { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_PORT } 123 #define SNDRV_DEFAULT_IRQ { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_IRQ } 124 #define SNDRV_DEFAULT_DMA { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_DMA } 125 #define SNDRV_DEFAULT_DMA_SIZE { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_DMA_SIZE } 126 #define SNDRV_DEFAULT_PTR SNDRV_DEFAULT_STR 127 #endif 121 128 122 129 #ifdef SNDRV_LEGACY_FIND_FREE_IRQ … … 157 164 #endif 158 165 166 #ifdef TARGET_OS2 159 167 #if defined(SNDRV_GET_ID) && !defined(MODULE) 160 168 #include <linux/ctype.h> … … 182 190 } 183 191 #endif 192 #endif 184 193 185 #endif /* __INITVAL_H */ 194 #endif /* __SOUND_INITVAL_H */ 195
Note:
See TracChangeset
for help on using the changeset viewer.