From owner-freebsd-sparc64@FreeBSD.ORG Thu Jul 1 11:11:10 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4179E16A4CE for ; Thu, 1 Jul 2004 11:11:10 +0000 (GMT) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id B03E043D41 for ; Thu, 1 Jul 2004 11:11:09 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) i61B9k1a012606; Thu, 1 Jul 2004 13:09:48 +0200 (CEST) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.10/8.12.10/Submit) id i61B9ePP012605; Thu, 1 Jul 2004 13:09:40 +0200 (CEST) (envelope-from marius) Date: Thu, 1 Jul 2004 13:09:40 +0200 From: Marius Strobl To: Pyun YongHyeon Message-ID: <20040701130940.A12214@newtrinity.zeist.de> References: <20040701093225.GA12517@kt-is.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20040701093225.GA12517@kt-is.co.kr>; from yongari@kt-is.co.kr on Thu, Jul 01, 2004 at 06:32:25PM +0900 X-AntiVirus: checked by AntiVir Milter 1.1-beta; AVE 6.26.0.3; VDF 6.26.0.11 (host: newtrinity.zeist.de) cc: sparc64@freebsd.org Subject: Re: pcm sound driver for SBus Ultra1/Ultra2 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 11:11:10 -0000 On Thu, Jul 01, 2004 at 06:32:25PM +0900, Pyun YongHyeon wrote: > Hello All, > > I don't know how may users want to hear sound on Ultra1/Ultra2. > But I wanted to hear some music while 'build world' is in progress. > > > 1. The driver is based on OpenBSD's driver and ISA mss driver > on FreeBSD. > 2. Supports onboard CS4231A chip on SBus Ultra1/Ultra2. > 3. Capture(recodring) was not tested at all. > - I don't have microphone. > 4. Due to lack of programming information for APC DMA, I > used existing interfaces of OpenBSD driver. So it may have > some bugs on FreeBSD. > 5. Full-duplex mode doesn't work. > 6. You may notice some noise when you work on ofw console. I don't > know what is the reason, atm. > 7. Due to lack of X supports, I could't test with xmms or GUI based > audio tools. > 8. If you have PCI/EBus based sparcs, they are not supported. Yes, they > use the same chip but have different DMA interface. In addition, I > don't have PCI/EBus based sparcs. > > Installation > 1. get the driver patch file and fetch your system > 2. build kernel and kernel modules > 3. load snd_cs4231.ko and play > Note, you may want to mute speaker output with mixer(8). > > The attached patch is for -CURRENT, and is also available at: > http://www.kr.freebsd.org/~yongari/cs4231.freebsd.diff > Interesting that adding a driver is sufficient for you. Last time I had a look at getting pcm(4) and SUNW,CS4231 working on FreeBSD/sparc64 I stumbled on pcm(4) not being endian-clean and not yet being fully converted to using busdma. At a quick glance that's still the case. Did you miss to add some changed files in your patch?