Update of /cvsroot/alsa/alsa-kernel/isa/opti9xx In directory sc8-pr-cvs1:/tmp/cvs-serv15569/isa/opti9xx
Modified Files: opti92x-ad1848.c Log Message: Moved snd_legacy_find_free_ioport() to opti driver. Index: opti92x-ad1848.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/isa/opti9xx/opti92x-ad1848.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- opti92x-ad1848.c 6 Jan 2003 09:12:47 -0000 1.18 +++ opti92x-ad1848.c 6 Jan 2003 09:45:16 -0000 1.19 @@ -47,7 +47,6 @@ #endif /* CS4231 */ #include <sound/mpu401.h> #include <sound/opl3.h> -#define SNDRV_LEGACY_FIND_FREE_IOPORT #define SNDRV_LEGACY_FIND_FREE_IRQ #define SNDRV_LEGACY_FIND_FREE_DMA #define SNDRV_GET_ID @@ -323,6 +322,16 @@ "82C930", "82C931", "82C933" }; + +static long snd_legacy_find_free_ioport(long *port_table, long size) +{ + while (*port_table != -1) { + if (!check_region(*port_table, size)) + return *port_table; + port_table++; + } + return -1; +} static int __init snd_opti9xx_init(opti9xx_t *chip, unsigned short hardware) { ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog