diff options
Diffstat (limited to 'include/sound/initval.h')
-rw-r--r-- | include/sound/initval.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/sound/initval.h b/include/sound/initval.h index f99a0d2ddfe7..ac62c67e6f42 100644 --- a/include/sound/initval.h +++ b/include/sound/initval.h | |||
@@ -50,6 +50,20 @@ | |||
50 | #define SNDRV_DEFAULT_DMA_SIZE { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_DMA_SIZE } | 50 | #define SNDRV_DEFAULT_DMA_SIZE { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_DMA_SIZE } |
51 | #define SNDRV_DEFAULT_PTR SNDRV_DEFAULT_STR | 51 | #define SNDRV_DEFAULT_PTR SNDRV_DEFAULT_STR |
52 | 52 | ||
53 | #ifdef SNDRV_LEGACY_FIND_FREE_IOPORT | ||
54 | static long snd_legacy_find_free_ioport(long *port_table, long size) | ||
55 | { | ||
56 | while (*port_table != -1) { | ||
57 | if (request_region(*port_table, size, "ALSA test")) { | ||
58 | release_region(*port_table, size); | ||
59 | return *port_table; | ||
60 | } | ||
61 | port_table++; | ||
62 | } | ||
63 | return -1; | ||
64 | } | ||
65 | #endif | ||
66 | |||
53 | #ifdef SNDRV_LEGACY_FIND_FREE_IRQ | 67 | #ifdef SNDRV_LEGACY_FIND_FREE_IRQ |
54 | #include <linux/interrupt.h> | 68 | #include <linux/interrupt.h> |
55 | 69 | ||