Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Sep 1999 23:06:33 -0400 (EDT)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        freebsd-alpha@FreeBSD.ORG, gandalf@vilnya.demon.co.uk`
Subject:   Re: sound on AS500
Message-ID:  <14301.47397.844234.102890@grasshopper.cs.duke.edu>
In-Reply-To: <14300.31539.575040.42521@grasshopper.cs.duke.edu>
References:  <14300.31539.575040.42521@grasshopper.cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

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: <CS4231> 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: <CS4231> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14301.47397.844234.102890>