[linux-audio-user] [PATCH] oss2jack for kernel => 2.6.17 (with patch)

Salvatore Di Pietro salvuz_78 at virgilio.it
Mon Sep 25 20:13:52 EDT 2006


Ok, here is the patch :)

...And it is fusd-kor-1.10-11, not fusd-kor-1.10-10.
Sorry, It's 2.13 AM and I'm almost asleep... ;)

-- 
           salvuz
      POST FATA RESVRGO
  Linux registered user #291700 | machine #174619
  get counted on ---> http://counter.li.org/ <---

-------------- next part --------------
--- kfusd/kfusd.c	2006-09-26 00:57:19.000000000 +0200
+++ kfusd/kfusd.c.new	2006-09-26 00:58:43.000000000 +0200
@@ -67,7 +67,7 @@
 #include <linux/mm.h>
 #include <linux/slab.h>
 #include <linux/vmalloc.h>
-#include <linux/devfs_fs_kernel.h>
+//#include <linux/devfs_fs_kernel.h>
 #include <linux/poll.h>
 #include <linux/version.h>
 #include <linux/major.h>
@@ -85,7 +85,7 @@
 #define STATIC
 
 /* Define this if you want to emit debug messages (adds ~8K) */
-#define CONFIG_FUSD_DEBUG
+//#define CONFIG_FUSD_DEBUG
 
 /* Default debug level for FUSD messages.  Has no effect unless
  * CONFIG_FUSD_DEBUG is defined. */
@@ -96,6 +96,8 @@
 /* Define this to check for memory leaks */
 /*#define CONFIG_FUSD_MEMDEBUG*/
 
+#undef CONFIG_DEVFS_FS
+
 /* Define this to use the faster wake_up_interruptible_sync instead of
  * the normal wake_up_interruptible.  Note: you can't do this unless
  * you're bulding fusd as part of the kernel (not a module); or you've
@@ -2956,10 +2958,10 @@
 	
 	cdev_del(fusd_control_device);
 	cdev_del(fusd_status_device);
-
-  devfs_remove(FUSD_CONTROL_FILENAME);
-  devfs_remove(FUSD_STATUS_FILENAME);
-
+#ifdef CONFIG_DEVFS_FS
+	devfs_remove(FUSD_CONTROL_FILENAME);
+	devfs_remove(FUSD_STATUS_FILENAME);
+#endif
 
 	class_destroy(fusd_class);
 	


More information about the Linux-audio-user mailing list