I'm trying to (eventually) test ISA devices with oga@'s and ariane@'s
patches, but for the moment, I'm just getting things working with the
default March 24th snapshot.
One of the (supposedly) working ISA devices I have here is an old
Creative SoundBlaster card, but I can't seem to get it working.
# audioctl {play,record}.block_size
play.block_size=200
record.block_size=400
The above mismatch is not good according to the archives (ratchov@)
http://www.mail-archive.com/[email protected]/msg70462.html
# audioctl record.block_size=200
record.block_size: 400 -> 192
This may, or may not be normal, namely the "rounding" to 192.
# audioctl play.block_size=192
play.block_size: 200 -> 192
# AUCAT_DEBUG=4 SIO_DEBUG=4 aucat -l
sio_open_aucat: trying 0 -> 0.default
sio_open_aucat: connect: No such file or directory
sun_setpar: 0: trying pars = 48000/16/6
sun_setpar: couldn't set linear encoding
aucat: <default>: can't open device
# AUCAT_DEBUG=4 SIO_DEBUG=4 aucat -l -r 8000
sio_open_aucat: trying 0 -> 0.default
sio_open_aucat: connect: No such file or directory
sun_setpar: 0: trying pars = 48000/16/6
sun_setpar: couldn't set linear encoding
aucat: <default>: can't open device
#
Needless to say, I need to get this card working normally before being
able to see if the ISA/DMA patches break it. ;)
I did go through all of the various src/sys/dev/isa/sb* files looking
for something similar to Jake's patch in the link above, but found
nothing.
Any hints would be appreciated. If I missed any needed details below,
let me know what you need.
jcr
***************************************************************************
# mixerctl -v
outputs.master=128,128 volume
inputs.fmsynth=128,128 volume
inputs.fmsynth.mute=off [ off on ]
inputs.fmsynth.swap=off [ off on ]
inputs.cd=128,128 volume
inputs.cd.mute=off [ off on ]
inputs.cd.swap=off [ off on ]
outputs.cd.mute=off [ off on ]
inputs.dac=128,128 volume
inputs.mic=0 volume
inputs.mic.mute=off [ off on ]
inputs.mic.swap=off [ off on ]
outputs.mic.mute=off [ off on ]
inputs.line=0,0 volume
inputs.line.mute=off [ off on ]
inputs.line.swap=off [ off on ]
outputs.line.mute=off [ off on ]
record.source=mic { mic cd line fmsynth }
equalization.treble=128,128 treble
equalization.bass=128,128 bass
inputs.pc_speaker=128 volume
inputs.input=128,128 volume
outputs.output=128,128 volume
inputs.agc=off [ off on ]
***************************************************************************
# audioctl
name=SoundBlaster
version=4.13
config=SB_16
encodings=ulinear:8,mulaw:8*,alaw:8*,slinear:8,slinear_le:16,ulinear_le:16,slinear_be:16*,ulinear_be:16*
properties=full_duplex,mmap,independent
full_duplex=0
fullduplex=0
blocksize=200
hiwat=163
lowat=1
output_muted=0
monitor_gain=0
mode=
play.rate=8000
play.sample_rate=8000
play.channels=1
play.precision=8
play.encoding=mulaw
play.gain=128
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=32600
play.samples=0
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=0
play.active=0
play.buffer_size=32768
play.block_size=200
play.errors=0
record.rate=8000
record.sample_rate=8000
record.channels=1
record.precision=8
record.encoding=mulaw
record.gain=0
record.balance=32
record.port=0x1
record.avail_ports=0x7
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.block_size=400
record.errors=0
***************************************************************************
OpenBSD 4.7-current (GENERIC) #561: Wed Mar 24 20:41:50 MDT 2010
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium (P54C) ("GenuineIntel" 586-class) 133 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8
real mem = 133791744 (127MB)
avail mem = 120848384 (115MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/08/96, BIOS32 rev. 0 @ 0xfbcf0
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x638
pcibios0: PCI BIOS has 4 Interrupt Routing table entries
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev
0x00) pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x2800
cpu0 at mainbus0: (uniprocessor)
cpu0: F00F bug workaround installed
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82437FX" rev 0x02
pcib0 at pci0 dev 7 function 0 "Intel 82371FB ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371FB IDE" rev 0x02: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 disabled (no drives) pciide0: channel 1 disabled (no
drives) vga1 at pci0 dev 10 function 0 "S3 86C968-0" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ahc0 at pci0 dev 11 function 0 "Adaptec AHA-2940" rev 0x03: irq 9
scsibus0 at ahc0: 8 targets, initiator 7
sd0 at scsibus0 targ 0 lun 0: <SEAGATE, ST32430N, 0510> SCSI2 0/direct
fixed sd0: 2049MB, 512 bytes/sec, 4197405 sec total
cd0 at scsibus0 targ 4 lun 0: <TOSHIBA, CD-ROM XM-3701TA, 0236> SCSI2
5/cdrom removable isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
ep0 at isa0 port 0x300/16 irq 10: address 00:a0:24:b5:96:ae, utp
(default utp) pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
isapnp0 at isa0 port 0x279: read port 0x203
sb1 at isapnp0 "Creative SB32 PnP, CTL0031, , Audio" port
0x220/16,0x330/2,0x388/4 irq 5 drq 1,5: dsp v4.13 midi1 at sb1: <SB
MPU-401 UART> audio0 at sb1
opl0 at sb1: model OPL3
midi2 at opl0: <SB Yamaha OPL3>
wdc2 at isapnp0 "Creative SB32 PnP, CTL2011, PNP0600, IDE" port
0x168/8,0x36e/2 irq 10 "Creative SB32 PnP, CTL0021, , WaveTable" at
isapnp0 port 0x620/4 not configured joy0 at isapnp0 "Creative SB32 PnP,
CTL7001, PNPB02F, Game" port 0x200/8 ep1 at isapnp0 "3Com 3C509B
EtherLink III, TCM5095, PNP80F7, " port 0x210/16 irq 11: address
00:a0:24:b5:96:ae, utp (default utp) biomask f745 netmask ff45 ttymask
ffdf vscsi0 at root scsibus1 at vscsi0: 256 targets
softraid0 at root
ahc0: target 0 synchronous at 10.0MHz, offset = 0xf
root on sd0a swap on sd0b dump on sd0b