From owner-freebsd-sparc64@FreeBSD.ORG Fri Jul 2 04:10:21 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 3A74D16A4CE for ; Fri, 2 Jul 2004 04:10:21 +0000 (GMT) Received: from ns.kt-is.co.kr (ns.kt-is.co.kr [211.218.149.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BCCB43D49 for ; Fri, 2 Jul 2004 04:10:20 +0000 (GMT) (envelope-from yongari@kt-is.co.kr) Received: from michelle.kt-is.co.kr (ns2.kt-is.co.kr [220.76.118.193]) (authenticated bits=128) by ns.kt-is.co.kr (8.12.10/8.12.10) with ESMTP id i6246XAh050105 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 2 Jul 2004 13:06:33 +0900 (KST) Received: from michelle.kt-is.co.kr (localhost.kt-is.co.kr [127.0.0.1]) by michelle.kt-is.co.kr (8.12.10/8.12.10) with ESMTP id i6248a7S015738 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 2 Jul 2004 13:08:36 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Received: (from yongari@localhost) by michelle.kt-is.co.kr (8.12.10/8.12.10/Submit) id i6248Rr6015737; Fri, 2 Jul 2004 13:08:27 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Date: Fri, 2 Jul 2004 13:08:27 +0900 From: Pyun YongHyeon To: Scott Long Message-ID: <20040702040827.GA15458@kt-is.co.kr> References: <20040701093225.GA12517@kt-is.co.kr> <40E4C7A4.4010707@samsco.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40E4C7A4.4010707@samsco.org> User-Agent: Mutt/1.4.1i X-Filter-Version: 1.11a (ns.kt-is.co.kr) 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 Reply-To: yongari@kt-is.co.kr List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 04:10:21 -0000 On Thu, Jul 01, 2004 at 08:25:40PM -0600, Scott Long wrote: ... > > Once again, you've done another impressive job =-) The biggest question > that I have is why you chose to base the work on the mss driver and not > the cs428x driver. I looked at this briefly a few weeks ago and > decided (after also looking at NetBSD) that it really only needed to be > abstracted so it could take both a PCI and an SBUS front-end. The only > thing that held me back was the lack of busdma support. > Well, I didn't check cs4281 datasheet. After reading the source I thought it would be different enough to require new driver.(AC97, DMA, sampling frequency etc.) One of major problems for SBus cs4231 driver was lack of APC DMA doucumentation and no existing SBus pcm driver for reference. So I borrowed the APC DMA code from OpenBSD, and adopted mixer routine from mss with small modifications.(mss driver supports the same chip cs4231.) If mss driver was designed well with BUS DMA in mind it would be possible to take SBus frontend. But I still dout it due to dramatic differences between DMA interface and interrupt handling. In addition, existing driver may need modification which is beyond scope of my ability. > Since this requires stubs into sndbuf_dma.c it might not be totally > appropriate as it is, but I'd like to also review it further over the > next few days and get back to you. Thanks! > Yes, this was not good solution. I'm not sound guy at all, and have little knowledge of pcm(4) internals. The method I took was the fastest path to realize the driver. Thanks a lot. > Scott Regards, Pyun YongHyeon -- Pyun YongHyeon