Subject: ad1848 problems
To: Port-i386 <port-i386@NetBSD.ORG>
From: Jukka Marin <jmarin@pyy.jmp.fi>
List: port-i386
Date: 06/13/1999 21:51:13
Hello,

I have sound driver problems on my laptop.  Playback works OK (using
mpg123, for example), but recording does not.  Here's the dmesg output
about the hardware (running NetBSD 1.4):

ym0 at isapnp0 port 0x220/16,0x530/8,0x388/8,0x330/2,0x370/2 irq 5 drq 0,1
ym0: OPL3-SA3 Sound Board : OPL3-SA3
audio0 at ym0: full duplex

When I try to record sound, I get very distorted samples.  For example,
using

dd if=/dev/audio of=/tmp/test bs=4096 count=2

gives me a file with only a few byte values in it (0x80, 0x6a, 0x68, 0x82).

I tried writing a small test program and using various encodings, but it
still did the same.

I have had this problem ever since the ym driver started working at all
(thanks to Lennart Augustsson) last summer.

Any ideas?  I found the ad1848 data sheet tonight, but I haven't started
studying the driver yet.  I guess it works for some people, so I wonder
what's wrong with it on my laptop..

Thanks,

  -jm


P.S. The audio(4) man page has at least one bug:

     The output port should be a combination of
     AUDIO_SPEAKER
             to select microphone output.

:-)