Update of /cvsroot/alsa/alsa-driver/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21578/include
Modified Files:
adriver.h
Log Message:
use the new module_param*() functions.
added wrapper functions for older kernels.
Index: adriver.h
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/include/adriver.h,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- adriver.h 29 Mar 2004 12:33:37 -0000 1.79
+++ adriver.h 7 Apr 2004 17:53:39 -0000 1.80
@@ -478,4 +478,16 @@
#define snd_dma_continuous_data(x) ((struct device *)(unsigned long)(x))
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
+#define SNDRV_MODULE_TYPE_int "i"
+#define SNDRV_MODULE_TYPE_bool "b"
+#define SNDRV_MODULE_TYPE_uint "i"
+#define SNDRV_MODULE_TYPE_charp "s"
+#define SNDRV_MODULE_TYPE_long "l"
+#define module_param_array(name, type, num, perm) \
+ MODULE_PARM(name, "1-" __MODULE_STRING(SNDRV_CARDS) SNDRV_MODULE_TYPE_##type)
+#define module_param(name, type, perm) \
+ MODULE_PARM(name, SNDRV_MODULE_TYPE_##type)
+#endif
+
#endif /* __SOUND_LOCAL_DRIVER_H */
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog