Try using the class if we're going to bother looking it up

git-svn-id: http://svn.xiph.org/trunk/fusd@12354 0101bb08-14d6-0310-b084-bc0e0c8e3800
This commit is contained in:
xiphmont 2007-01-19 17:26:14 +00:00
parent 0bf42c8088
commit cc3e84dfbf
2 changed files with 4 additions and 12 deletions

View File

@ -2,16 +2,8 @@ SRC = console-read.c drums3.c echo.c helloworld.c logring.c pager.c\
drums2.c drums.c ioctl.c uid-filter.c drums2.c drums.c ioctl.c uid-filter.c
OBJ = console-read.o drums3.o echo.o helloworld.o logring.o pager.o\ OBJ = console-read.o drums3.o echo.o helloworld.o logring.o pager.o\
drums2.o drums.o ioctl.o uid-filter.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) default: $(TARGETS)

View File

@ -91,7 +91,7 @@
/* Default debug level for FUSD messages. Has no effect unless /* Default debug level for FUSD messages. Has no effect unless
* CONFIG_FUSD_DEBUG is defined. */ * CONFIG_FUSD_DEBUG is defined. */
#ifndef CONFIG_FUSD_DEBUGLEVEL #ifndef CONFIG_FUSD_DEBUGLEVEL
#define CONFIG_FUSD_DEBUGLEVEL 2 #define CONFIG_FUSD_DEBUGLEVEL 3
#endif #endif
/* Define this to check for memory leaks */ /* Define this to check for memory leaks */
@ -2066,7 +2066,7 @@ STATIC int fusd_register_device(fusd_dev_t *fusd_dev,
if(sys_class){ if(sys_class){
RDEBUG(3, "Found entry for class '%s' in sysfs\n",register_msg.clazz); 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; fusd_dev->owns_class = 0;
}else{ }else{
RDEBUG(3, "Sysfs has no entry for '%s'; registering new class\n",register_msg.clazz); RDEBUG(3, "Sysfs has no entry for '%s'; registering new class\n",register_msg.clazz);