From owner-freebsd-multimedia Mon Nov 27 5:18:54 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from bbnrel4.net.external.hp.com (bbnrel4.net.external.hp.com [155.208.254.68]) by hub.freebsd.org (Postfix) with ESMTP id F20C437B479; Mon, 27 Nov 2000 05:18:49 -0800 (PST) Received: from hpcpbla.bri.hp.com (hpcpbla.bri.hp.com [15.144.112.65]) by bbnrel4.net.external.hp.com (Postfix) with ESMTP id 017BC1D260; Mon, 27 Nov 2000 14:18:43 +0100 (MET) Received: from sse0691.bri.hp.com (sse0691.bri.hp.com [15.144.0.53]) by hpcpbla.bri.hp.com (8.9.3 (PHNE_18979)/8.9.3 SMKit7.0) with ESMTP id NAA23685; Mon, 27 Nov 2000 13:18:42 GMT Received: (from keithj@localhost) by sse0691.bri.hp.com (8.11.1/8.9.3) id eARDNDc47694; Mon, 27 Nov 2000 13:23:13 GMT (envelope-from keithj) Date: Mon, 27 Nov 2000 13:23:13 +0000 From: Keith Jones To: Dmitry Sivachenko Cc: keith@mithy.org, multimedia@FreeBSD.ORG Subject: Re: Problem with MSS sound card Message-ID: <20001127132313.A47016@moose.bri.hp.com> References: <20001122190633.A272@netserv1.chg.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <20001122190633.A272@netserv1.chg.ru>; from demon@FreeBSD.ORG on Wed, Nov 22, 2000 at 07:06:33PM +0300 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Me too! This seems to be a general problem with the newpcm driver and AD1848's. I have had the same problem with the so-called "Compaq Business Audio" (essentially an on-board AD1848 chip) on my old Deskpro 450XE since 4.0-RELEASE. I went back to using the snd driver, assuming that it was just my old bogus Compaq hardware that couldn't cope, was no longer supported, or similar. This time around I took a quick look at the code for both drivers. My initial findings suggest that there is quite a difference between the two drivers in the way that timeouts are handled, and I think that this may be affecting newpcm's ability to handle older MSS cards/chips (it appears at first glance that the code in newpcm contains rather more draconian timeout values). I've also stumbled on one or two other differences between the drivers in the way the hardware is handled and I suspect something else may have been inadvertently broken during the port of the MSS code from snd to newpcm. PR to follow once I've had time to play with the driver code at home and isolate the exact nature of the problem. In the meantime I'd stick to using 'snd', personally. newpcm driver flags (I don't yet know whether these work for 'snd'): The flags for 'pcm' are essentially used for defining your sound card's secondary DMA channel. This should be set to 0 (or left out of the config line) if your card doesn't have one, or set to 0x10 + C to specify DMA channel C. There are other flags for newpcm, but the commentary in LINT strongly advises you not to play with them. ;) Kind regards Keith On Wed, Nov 22, 2000 at 07:06:33PM +0300, Dmitry Sivachenko wrote: > Hello! > > I use FreeBSD-4.2-BETA, and I have MSS sound card (ISA). > When I use these two lines in my kernel config file > > controller snd0 > device mss0 at isa? port 0x530 irq 9 drq 1 > > my sound card is detected as follows > > mss0 at port 0x530 irq 9 drq 1 on isa0 > snd0: > mss0: driver is using old-style compatability shims > > and works just fine. > > But when I am trying to use new pcm device by replacing the above lines > in kernel config file with this one: > > device pcm0 at isa? port? irq 9 drq 1 flags 0x00 > > my card is detected this way: > > pcm0: at port 0x530-0x537 irq 9 drq 1 flags 0x9100 on isa0 > > But it doesn't work!!! > When I am trying to play sound file with amp(1), I get these errors in > /var/log/messages: > > Nov 22 18:59:06 cavia /kernel: AD_WAIT_INIT FAILED 1000 0x80 > Nov 22 18:59:06 cavia /kernel: AD_WAIT_INIT FAILED 1000 0x80 > Nov 22 18:59:06 cavia /kernel: mss: Auto calibration timed out(1). > Nov 22 18:59:06 cavia /kernel: AD_WAIT_INIT FAILED 201 0x80 > Nov 22 18:59:06 cavia last message repeated 11 times > Nov 22 18:59:07 cavia /kernel: pcm0: play interrupt timeout, channel dead > > What's wrong? > > PS: I have no idea which value for 'flags' to use... > > Thank you in advance, > Dima. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-multimedia" in the body of the message -- Keith Jones E-Business Service Introduction, GBIT-E (Bristol) E: keith_jones@non.hp.com T: [+44 117] 312-7602 I don't speak for Hewlett-Packard. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message