Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Nov 1998 23:15:12 -0600
From:      David Kelly <dkelly@HiWAAY.net>
To:        freebsd-multimedia@FreeBSD.ORG
Subject:   Luigi's driver, AOpen AW37, and me.
Message-ID:  <199811100515.XAA00327@n4hhe.ampr.org>

next in thread | raw e-mail | index | archive | help
Eventually I got it working, but is it right? Here's how I got there:

On advice that Crystal Semiconductor based sound cards were Good Stuff, 
plus the fact CS has 1MB PDF manuals online, I purchased an AOpen AW37 
sound card for use under FreeBSD. This is based on the CS42345 chip.

Didn't work under FreeBSD 2.2.7-stable so I spent the weekend upgrading
to 3.0-current (via cvsup as of Sunday, and again tonight). Same failure
message. These are the last two lines (is it position sensitive?) of my
kernel config file:

controller pnp0
device pcm0 at isa ? port? tty irq 5 drq 1

Output from dmesg:
...
Probing for PnP devices:
CSN 1 Vendor ID: CSCd925 [0x25d9630e] Serial 0xffffffff Comp ID: @@@0000 [0x0000
0000]
...
pcm0 at 0x530 irq 5 drq 1 flags 0xa600 on isa
mss_attach <mss>0 at 0x530 irq 5 dma 1:1 flags 0xa600

So far, so good. Then "cd /dev; sh MAKEDEV snd0".

Tried making snd1 as shown in pcm(4) but attempts to use /dev/audio1 
stated the "device was not configured".

Attempting to generate noise using 
"cat /usr/local/lib/exmh-2.0.2/drip.au > /dev/audio" yeilds silence and:

timeout flushing dbuf_out, chan 1 cnt 0x2f7 flags 0x00000041

Hate to admit it in public, but when FreeBSD didn't like my sound card I
booted the desparation OS, NT 4.0, and directly proceded to install that
OS's drivers. After 13 reboots it was playing! Can only conclude the
card and speakers work. And programmers at Microsoft really must be 
proud of their boot song to force so many reboots.  :-)

So then I went back and followed one more item: booted "kernel -c" and 
typed as instructed in the pcm(4) manpage:

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

Now I get noise out of the speakers but nothing I'm proud of. Barely
recognizable.

n4hhe: {1020} cat /dev/sndstat     
FreeBSD Audio Driver (981002) Nov  9 1998 22:12:45
Installed devices:
pcm0: <mss> at 0x530 irq 5 dma 1:1
n4hhe: {1021} 

Why does the manpage say 0x534 but above says 0x530? OK, reboot again 
change the 0x534 to 0x530:

pnp 1 0 os enable port0 0x530 port2 0x220 irq0 5 drq0 1 drq1 3

dmesg says:
CSN 1 Vendor ID: CSCd925 [0x25d9630e] Serial 0xffffffff Comp ID: @@@0000 [0x0000
0000]
...
pcm0 at 0x220 irq 5 drq 1 on isa

This time its missing the mss_attach I had earler. But now it works! (At
least playback, haven't tried recording.) Sound is not the trashy 
garbage I was getting 
before.

n4hhe: {1003} cat /dev/sndstat
FreeBSD Audio Driver (981002) Nov  9 1998 22:12:45
Installed devices:
pcm0: <SoundBlaster Pro 3.2> at 0x220 irq 5 dma 1:1
n4hhe: {1004}

So whats the deal here? I'm guessing PnP didn't find the card at the
first place I suggested, 0x530, altho when told 0x534 it found it,
played terrible, yet reported via dmesg and /dev/sndstat it was at
0x530. Lacking an mss device at 0x530 it fell back to SoundBlaster Pro
3.2 at 0x220.

What next? Have I done all that is possible? Is the above going to 
function full duplex? What do I need to do to hard code the PnP stuff 
into my kernel config so it doesn't have to be typed the next time I 
build a new kernel?

How do I set the system volume control?


--
David Kelly N4HHE, dkelly@nospam.hiwaay.net
=====================================================================
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.



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?199811100515.XAA00327>