Author: hselasky
Date: Wed May 14 07:33:06 2014
New Revision: 266006
URL: http://svnweb.freebsd.org/changeset/base/266006

Log:
  Change the USB audio kernel module linking order, so that the USB
  audio device driver is detached first and not its children. This fixes
  a panic in some cases when unloading "snd_uaudio" while a USB device
  is plugged. The linking order affects the order in which the module
  dependencies are registered.
  
  MFC after:    1 week

Modified:
  head/sys/modules/sound/driver/uaudio/Makefile

Modified: head/sys/modules/sound/driver/uaudio/Makefile
==============================================================================
--- head/sys/modules/sound/driver/uaudio/Makefile       Wed May 14 04:57:55 
2014        (r266005)
+++ head/sys/modules/sound/driver/uaudio/Makefile       Wed May 14 07:33:06 
2014        (r266006)
@@ -7,6 +7,6 @@ S=      ${.CURDIR}/../../../..
 KMOD=  snd_uaudio
 SRCS=  bus_if.h device_if.h usb_if.h vnode_if.h
 SRCS+= opt_usb.h opt_bus.h feeder_if.h channel_if.h usbdevs.h
-SRCS+= uaudio.c uaudio_pcm.c
+SRCS+= uaudio_pcm.c uaudio.c 
 
 .include <bsd.kmod.mk>
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to