From owner-freebsd-usb@FreeBSD.ORG Fri Jul 3 16:23:54 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CFB01065670 for ; Fri, 3 Jul 2009 16:23:54 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.freebsd.org (Postfix) with ESMTP id D04048FC1F for ; Fri, 3 Jul 2009 16:23:53 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=EXzeDOZG6rMA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=mopnxqesqmxVJCEVzbIA:9 a=ST6ihnHjenEIhhMEaafk_5l5YE8A:4 a=pMv_4yDYm7DZLDD462kA:9 a=ASN1p6bhOA-dUleAPDmmlqNt1uAA:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 216962683; Fri, 03 Jul 2009 18:23:52 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 3 Jul 2009 18:23:28 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <20090704.010107.116362740.sanpei@sanpei.org> In-Reply-To: <20090704.010107.116362740.sanpei@sanpei.org> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_BCjTKf63Wn82i1n" Message-Id: <200907031823.29040.hselasky@c2i.net> Cc: MIHIRA Sanpei Yoshiro Subject: Re: [8-current] kernel panic at usbd_get_page+0x59 with uaudio X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jul 2009 16:23:54 -0000 --Boundary-00=_BCjTKf63Wn82i1n Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Friday 03 July 2009 18:01:07 MIHIRA Sanpei Yoshiro wrote: > Hi. > > I use 8-current(csup-ed today) and uaudio device. > > I record FM radio with below line. > /usr/local/bin/wavrec -d /dev/dsp0.0 -x -t 10 -S -s 48000 test.wav > > kernel panic at usbd_get_page+0x59. > There has been a regression. Try the attached patch. --HPS --Boundary-00=_BCjTKf63Wn82i1n Content-Type: text/x-patch; charset="iso-8859-1"; name="uaudio.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="uaudio.diff" --- /usr/8-current/src/sys/dev/sound/usb/uaudio.c 2009-06-28 08:48:04.000000000 +0200 +++ uaudio.c 2009-07-03 18:20:32.000000000 +0200 @@ -1256,7 +1256,7 @@ for (n = 0; n != nframes; n++) { offset1 = offset0; - pc = usbd_xfer_get_frame(xfer, n); + pc = usbd_xfer_get_frame(xfer, 0); len = usbd_xfer_frame_len(xfer, n); while (len > 0) { --Boundary-00=_BCjTKf63Wn82i1n--