From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 20 21:32:21 2009 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81EC91065693 for ; Thu, 20 Aug 2009 21:32:21 +0000 (UTC) (envelope-from rc@networkz.ch) Received: from x27.netnea.com (gstserv.netnea.com [213.200.225.210]) by mx1.freebsd.org (Postfix) with ESMTP id 39F2F8FC5B for ; Thu, 20 Aug 2009 21:32:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by x27.netnea.com (Postfix) with ESMTP id 8F17C33DEF for ; Thu, 20 Aug 2009 23:32:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at neanet.com Received: from x27.netnea.com ([127.0.0.1]) by localhost (x27.netnea.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0e26p0INfeIy for ; Thu, 20 Aug 2009 23:32:18 +0200 (CEST) Received: from [10.0.0.101] (unknown [89.236.172.36]) by x27.netnea.com (Postfix) with ESMTPSA id 4E28C33DEE for ; Thu, 20 Aug 2009 23:32:18 +0200 (CEST) Message-ID: <4A8DC0DF.4040701@networkz.ch> Date: Thu, 20 Aug 2009 23:32:15 +0200 From: Christian Ramseyer User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: freebsd-sparc64@freebsd.org References: <4A7C6B50.3070503@networkz.ch> <20090817205340.GA75477@alchemy.franken.de> <20090817215612.GB75477@alchemy.franken.de> <20090818192748.GA6585@alchemy.franken.de> <20090819161410.GA19351@alchemy.franken.de> In-Reply-To: <20090819161410.GA19351@alchemy.franken.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: Audio on Sunblade 100 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Aug 2009 21:32:21 -0000 Marius Strobl wrote: >> Ok, I think I've identified the incorrect bus_dma(9) settings >> with the help of Tatsuo YOKOGAWA's ali(4) (which as least for >> the alignment requirement also matches the NetBSD autri(4). A >> new patch is at: >> http://people.freebsd.org/~marius/t4dwave_M5451_32-bit.diff Hi Thanks for the patch, I've applied it and the driver seems to load properly: pcm0: port 0x900-0x9ff mem 0x424000-0x424fff at device 8.0 on pci0 pcm0: pcm0: [GIANT-LOCKED] pcm0: [ITHREAD] Unfortunately, the actual "playing sound part" is not going too well. When I do e.g. : rc@ds9000:~ $ mpg321 03\ Wonderful\ Night\ \(feat\ Lateef\).mp3 High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3. ... Playing MPEG stream from 03 Wonderful Night (feat Lateef).mp3 ... MPEG 1.0 layer III, 192 kbit/s, 44100 Hz stereo I sometimes get some seconds of sound, but most of the time only silence or a short burst of static, and then pcm0:virtual:dsp0.vp0: play interrupt timeout, channel dead appears on the console. I tried to evade some layers of complexity by trying: rc@ds9000:~ $ sox 10-the_white_stripes-take_take_take.mp3 10-the_white_stripes-take_take_take.raw rc@ds9000:~ $ cat 10-the_white_stripes-take_take_take.raw > /dev/dsp0.0 cat: stdout: Invalid argument This didn't output anything audible, though I'm not even sure if it should work. As it worked for Gheorghe, chances are that I'm doing something wrong/different: - the driver is built directly into the kernel, I'm using sparc64/conf/GENERIC with minimal modifications: [root@ds9000 /usr/src/sys/sparc64/conf]# diff GENERIC SNOOSNOO 24c24 < ident GENERIC --- > ident SNOOSNOO 242a243,245 > > device sound > device snd_t4dwave - kernel built like this: 102 make buildkernel KERNCONF=SNOOSNOO 103 make installkernel KERNCONF=SNOOSNOO Thanks for your time & best regards Christian