From owner-freebsd-arm@FreeBSD.ORG Wed Apr 30 14:14:40 2014 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 630D51FC for ; Wed, 30 Apr 2014 14:14:40 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 342841712 for ; Wed, 30 Apr 2014 14:14:39 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1WfVHM-000BHs-15; Wed, 30 Apr 2014 14:14:32 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id s3UEEQ29017624; Wed, 30 Apr 2014 08:14:27 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/DWnLn/nvkfmg6nQYFgKC3 Subject: Re: USB audio device on Raspberry Pi - link_elf: symbol isa_dmastatus undefined From: Ian Lepore To: Hans Petter Selasky In-Reply-To: <5360C0A7.9010407@selasky.org> References: <20140425154430.GA76168@utility-01.thismonkey.com> <535A8AEA.1000100@selasky.org> <20140425204134.GA458@cicely7.cicely.de> <20140430091411.GA45015@utility-01.thismonkey.com> <5360C0A7.9010407@selasky.org> Content-Type: text/plain; charset="us-ascii" Date: Wed, 30 Apr 2014 08:14:26 -0600 Message-ID: <1398867266.22079.51.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm@FreeBSD.org, Scott Aitken , Scott Aitken , ticso@cicely.de X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2014 14:14:40 -0000 On Wed, 2014-04-30 at 11:21 +0200, Hans Petter Selasky wrote: > On 04/30/14 11:14, Scott Aitken wrote: > > Hi again, > > > > good call on the kernel recompile. I added sound and uaudio to the kernel > > and low and behold things improved: > > > > > > root@raspberry-pi:/mnt # dmesg > > ... > > ugen0.4: at usbus0 > > uaudio0: on usbus0 > > uaudio0: Play: 96000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer. > > uaudio0: Play: 48000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer. > > uaudio0: Play: 44100 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer. > > uaudio0: No recording. > > uaudio0: No MIDI sequencer. > > pcm0: on uaudio0 > > > > However, when I play a file to /dev/dsp, I get an error in dmesg: > > > > root@raspberry-pi:/mnt # cat /bin/ls > /dev/dsp > > cat: stdout: Invalid argument > > root@raspberry-pi:/mnt # dmesg > > ... > > pcm0: chn_write(): pcm0:virtual:dsp0.vp0: play interrupt timeout, channel dead > > > > Hi, > > In the "sys/dev/usb/controller/dwc_otg.c" driver the isochronous method > which your audio device is using, is not implemented, because it causes > excessive interrupts. So the USB transfer simply times out. > > --HPS You mentioned 8k interrupt/sec, while that may be too many in some "it could be better" sense, it shouldn't be enough to cause problems. I was doing some testing on a wandboard (about twice as fast an an rpi) with more than 20k int/sec without having any problems. -- Ian