Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Mar 2007 13:01:37 +0200
From:      "Hofmann, Laurent" <laurent@kally.net>
To:        <freebsd-usb@freebsd.org>
Subject:   RE: Memory leak / Kernel Panic using snd_uaudio (USB Sound Card)
Message-ID:  <009c01c77383$f48c64a0$dda52de0$@net>
In-Reply-To: <200703310840.09253.hselasky@c2i.net>
References:  <008701c77317$1dfbc5f0$59f351d0$@net> <200703310840.09253.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
-----Message d'origine-----
De : Hans Petter Selasky [mailto:hselasky@c2i.net] Envoy=E9 : samedi 31 =
mars
2007 08:40 =C0 : freebsd-usb@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=3D../src package
make install

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

./install_uaudio.sh

I am not sure what patches they MFC'ed from head to 6.2 release, =
regarding
the=20
sound system, so it might be that my "uaudio.c" won't compile. But that =
can=20
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=3Dc99 -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=3D8000 --param inline-unit-growth=3D100 --param
large-function-growth=3D1000  -mno-align-long-strings
-mpreferred-stack-boundary=3D2  -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.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?009c01c77383$f48c64a0$dda52de0$>