Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jun 1999 22:04:13 -0400 (EDT)
From:      Chuck Robey <chuckr@picnic.mat.net>
To:        FreeBSD-multimedia@FreeBSD.org
Subject:   midi questions
Message-ID:  <Pine.BSF.4.10.9906112146310.400-100000@picnic.mat.net>

next in thread | raw e-mail | index | archive | help
I've been trying to get Seigo Tanimura's new midi driver to work ... and
not doing too well.  It's probably because I haven't paid all that much
attention to sound, so I don't know it as well as I should.  I want to
ask a few questions.  If you know any of the answers, I'd appreciate
some info.

I have an Intel DK440LX motherboard (because of the dual processors).
It has a pretty large array of on-board peripherals, and the sound is
one of them, based upon (according to the pdf docs) Crystal CS4236B,
which has an OPL-3 compatible FM synthesizer.

The new midi driver actually has the ability to drive a midi connection,
so I have to know about the midi port, which I've never needed before.
Add that to PNP, that's causing my problems in getting it all going.

I have had sound working great, via PNP & kernel.conf, so I am
reasonably familiar with pnp(4) and kget(8), and the boot files.  I've
had my sound rearranging itself via kernel.conf successfully.

Does the midi port need it's own IRQ?  I had the sound card listed as
running  on IRQ 15, ioaddr 0x534 for WSS.  The soundblaster
compatibility at ioaddr 0x220; I didn't have a line for the FM
sythesizer.  Here's the line I had:

pnp 1 0 os enable port0 0x534 port2 0x220 irq0 15 drq0 1 drq1 0

OK, to add the FM synthesizer, I added a port 1 clause, which changed
the line to:

pnp 1 0 os enable port0 0x534 port 1 0x388 port2 0x220 irq0 15 drq0 1 drq1 0

pnpinfo seemed to find this ok, and set it up.  The midi(4) man page
that came with Seigo's driver talks about the midi uart --- does it
share that same irq (the one I had set to 15) or does it need it's own?
I had set up a second kernel.conf line:

pnp 1 3 os enable port0 0x330 irq 15

which I thought would handle midi.  It kept on giving me the error line

/kernel: open: unit 1 not configured, perhaps you want unit 2 ?

I tried setting that line 2 of kernel.conf so it would use irq 11 (an
irq of it's own).  It still doesn't work.  The probe message doesn't
tell a lot:

uartsio0: probing at port 0x330.
opl0: probing at port 0x330.

Is that 0x330 address right, for a uart?  I thought that was the address
to right to the midi device ... I didn't realize that's a uart.

Here's the end of my pnpinfo listing, maybe it will be of help:

Logical device #0
IO:  0x0534 0x0388 0x0220 0x0000 0x0000 0x0000 0x0000 0x0000
IRQ 15 0
DMA 1 0
IO range check 0x00 activate 0x01

Logical device #1
IO:  0x0200 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
IRQ 0 0
DMA 4 4
IO range check 0x00 activate 0x01

Logical device #2
IO:  0x0120 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
IRQ 0 0
DMA 4 4
IO range check 0x00 activate 0x01

Logical device #3
IO:  0x0330 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
IRQ 0 0
DMA 4 4
IO range check 0x00 activate 0x01


----------------------------+-----------------------------------------------
Chuck Robey                 | Interests include any kind of voice or data 
chuckr@picnic.mat.net       | communications topic, C programming, and Unix.
213 Lakeside Drive Apt T-1  |
Greenbelt, MD 20770         | I run picnic and jaunt, both FreeBSD-current.
(301) 220-2114              | 
----------------------------+-----------------------------------------------







To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message




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