From owner-freebsd-alpha Mon Sep 13 20: 7: 9 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 7D42814CE6 for ; Mon, 13 Sep 1999 20:07:05 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.1/8.9.1) with ESMTP id XAA14528; Mon, 13 Sep 1999 23:07:03 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.9.3/8.9.1) id XAA14956; Mon, 13 Sep 1999 23:06:33 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 13 Sep 1999 23:06:33 -0400 (EDT) To: Andrew Gallatin Cc: freebsd-alpha@FreeBSD.ORG, gandalf@vilnya.demon.co.uk` Subject: Re: sound on AS500 In-Reply-To: <14300.31539.575040.42521@grasshopper.cs.duke.edu> References: <14300.31539.575040.42521@grasshopper.cs.duke.edu> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14301.47397.844234.102890@grasshopper.cs.duke.edu> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Andrew Gallatin writes: > > I'm trying to get sound working under -current on my home machine > (AS500/266). This machine has an Intel 82375EB PCI-EISA bridge (with > no actual slots), behind which sit the integrated ISA peripherials and > an MSS card in a tiny little non-standard slot. According to the ECU, > the MSS board uses the following resources: > > ports: 0x530-0x537, 0x388-0x38b > DMA channels: 0 & 1 > IRQ: 2(9) Edge-triggered > > I've added PCM to my kernel config file like this: > > device pcm0 at isa? port ? irq 9 drq 0 flags 0x11 > > The pcm driver probes OK, but fails to attach because the > resource_list_find() in isa_alloc_resource() at around line 195 of > alpha/isa/isa.c comes up null when attempting to alloc the first DMA > channel. > > I hacked dev/pcm/isa/mss.c to ask for dma channel 0 like this: > mss->drq1 = bus_alloc_resource(dev, SYS_RES_DRQ, &mss->drq1_rid,0, 0,1, RF_ACTIVE); > > This at least allows the pcm driver to attach. However, when I > attempt to play an mp3, amp gets stuck in pcmwr & I never see any > interrupts on irq9. > > For what its worth, this is what its attaching as: > > pcm0: at port 0x530-0x537,0x538-0x539 irq 9 flags 0xa211 on isa0 > pcm0: interrupting at ISA irq 9 > > > If I leave the source alone & tell the ECU that the card should use > dma channel 3 & tell FreeBSD the same thing, I get the same > results. There are jumpers on the card, but I have no idea what they > do. I cannot find any documentation on this. > > I was wondering if anybody might have any suggestons..? I looked at an identical AlphaStation today which is running NT. Its ECU also reports that its mss card is at the settings above, but NT itself claims that the board is at port 0x530, dma 1, irq 11, & it claims that dual DMA is off. (The sound actually works on NT) I changed the FreeBSD settings to match & I now see a happy: pcm0: at port 0x530-0x537,0x538-0x539 irq 11 drq 1 flags 0xa200 on isa0 However, amp still does not work (this time the playing subprocess is stuck in select). I can still cat a .au file to /dev/audio (and hear nothing). Still no interrupts reported for the card's irq. If I manually call the mss_intr function out of ddb, it tells me 'mss_intr: irq, but not from mss', so it apparently isn't an irq routing problem. Any ideas? Thanks, Drew ------------------------------------------------------------------------------ Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin Duke University Email: gallatin@cs.duke.edu Department of Computer Science Phone: (919) 660-6590 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message