Memory leak / Kernel Panic using snd_uaudio (USB Sound Card)

Hofmann, Laurent laurent at kally.net
Sat Mar 31 11:01:57 UTC 2007


-----Message d'origine-----
De : Hans Petter Selasky [mailto:hselasky at c2i.net] Envoyé : samedi 31 mars
2007 08:40 À : freebsd-usb at freebsd.org Cc : Hofmann, Laurent Objet : Re:
Memory leak / Kernel Panic using snd_uaudio (USB Sound Card)


The new USB stack has got a new uaudio driver also. I would try that first.

How to get the latest sources:

svn --username anonsvn --password anonsvn \
      checkout svn://svn.turbocat.net/i4b
#
# The following commands will
# install the driver on FreeBSD:
#
cd i4b/trunk/i4b/FreeBSD.usb
make S=../src package
make install

Then edit the file "install_uaudio.sh" and change it as needed, if you are
not 
installing to /usr/src.

./install_uaudio.sh

I am not sure what patches they MFC'ed from head to 6.2 release, regarding
the 
sound system, so it might be that my "uaudio.c" won't compile. But that can 
easily be fixed if you send me the compile log where it breaks.

--HPS
----------------------------------------------------------------------------
-------

Thanks.
I did what you told me, but when I compile the kernel, it crashes compiling
umass.c (Don't know how it is related ?)

cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-fformat-extensions -std=c99 -g -nostdinc -I-  -I. -I/usr/src/sys
-I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter
-I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath
-I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -D_KERNEL
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000  -mno-align-long-strings
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-ffreestanding -Werror  /usr/src/sys/dev/usb/umass.c
/usr/src/sys/dev/usb/umass.c: In function `umass_cam_action':
/usr/src/sys/dev/usb/umass.c:2626: error: structure has no member named
`protocol'
/usr/src/sys/dev/usb/umass.c:2626: error: `PROTO_SCSI' undeclared (first use
in this function)
/usr/src/sys/dev/usb/umass.c:2626: error: (Each undeclared identifier is
reported only once
/usr/src/sys/dev/usb/umass.c:2626: error: for each function it appears in.)
/usr/src/sys/dev/usb/umass.c:2627: error: structure has no member named
`protocol_version'
/usr/src/sys/dev/usb/umass.c:2628: error: structure has no member named
`transport'
/usr/src/sys/dev/usb/umass.c:2628: error: `XPORT_USB' undeclared (first use
in this function)
/usr/src/sys/dev/usb/umass.c:2629: error: structure has no member named
`transport_version'
/usr/src/sys/dev/usb/umass.c:2629: error: `XPORT_VERSION_UNSPECIFIED'
undeclared (first use in this function)
/usr/src/sys/dev/usb/umass.c:2630: error: structure has no member named
`xport_specific'
*** Error code 1

Stop in /usr/obj/usr/src/sys/Arwen.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

When I did "make install" it merged a lot of things in my /usr/src/sys, not
only audio... Is that normal ?

Best Regards,

Laurent H.




More information about the freebsd-usb mailing list