[xiph-commits] r12354 - in trunk/fusd: examples kfusd

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Fri Jan 19 09:26:16 PST 2007


Author: xiphmont
Date: 2007-01-19 09:26:14 -0800 (Fri, 19 Jan 2007)
New Revision: 12354

Modified:
   trunk/fusd/examples/Makefile
   trunk/fusd/kfusd/kfusd.c
Log:
Try using the class if we're going to bother looking it up


Modified: trunk/fusd/examples/Makefile
===================================================================
--- trunk/fusd/examples/Makefile	2007-01-19 17:14:37 UTC (rev 12353)
+++ trunk/fusd/examples/Makefile	2007-01-19 17:26:14 UTC (rev 12354)
@@ -2,17 +2,9 @@
 	drums2.c drums.c ioctl.c uid-filter.c
 OBJ  = console-read.o drums3.o echo.o helloworld.o logring.o pager.o\
 	drums2.o drums.o ioctl.o uid-filter.o
-TARGETS = helloworld
+TARGETS = console-read drums3 echo helloworld logring pager\
+	drums2 drums ioctl uid-filter
 
-# right now, several examples do not work properly; the current
-# version of fusd is unable to add new devices to a preexisting class
-# (unless the device calsss is 'sound') and for that reason, examples
-# that register multiple devices build but do not run properly.  Will
-# be fixed soon (requires a minor kernel extension).
-
-#TARGETS = console-read drums3 echo helloworld logring pager\
-#	drums2 drums ioctl uid-filter
-
 default: $(TARGETS)
 
 install: $(TARGETS)

Modified: trunk/fusd/kfusd/kfusd.c
===================================================================
--- trunk/fusd/kfusd/kfusd.c	2007-01-19 17:14:37 UTC (rev 12353)
+++ trunk/fusd/kfusd/kfusd.c	2007-01-19 17:26:14 UTC (rev 12354)
@@ -91,7 +91,7 @@
 /* Default debug level for FUSD messages.  Has no effect unless
  * CONFIG_FUSD_DEBUG is defined. */
 #ifndef CONFIG_FUSD_DEBUGLEVEL
-#define CONFIG_FUSD_DEBUGLEVEL 2
+#define CONFIG_FUSD_DEBUGLEVEL 3
 #endif
 
 /* Define this to check for memory leaks */
@@ -2066,7 +2066,7 @@
     
     if(sys_class){
       RDEBUG(3, "Found entry for class '%s' in sysfs\n",register_msg.clazz);
-      fusd_dev->clazz = sound_class;
+      fusd_dev->clazz = sys_class;
       fusd_dev->owns_class = 0;
     }else{
       RDEBUG(3, "Sysfs has no entry for '%s'; registering new class\n",register_msg.clazz);



More information about the commits mailing list