Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Oct 1998 11:42:20 -0400 (EDT)
From:      Lowell Gilbert <lowell@world.std.com>
To:        freebsd-questions@FreeBSD.ORG, luigi@iet.unipi.it
Subject:   problems with FreeBSD audio driver
Message-ID:  <199810231542.LAA10911@ironbridgenetworks.com>

next in thread | raw e-mail | index | archive | help
I have the driver mostly working, but I can't deal with Realaudio
files over the net.  *Local* copies of *the same* file work fine, but
remote copies give me a "Cannot open audio device." error.

I realize the "FreeBSD" version is quite old, but that shouldn't keep
it from working at all, should it?

The audio device is on the motherboard, and appears to be an OPL3 type
device... 

If you can see what I'm doing wrong, please let me know.  Information
on the configuration follows.

 - Lowell

================================================================
relevant bit of config file:
## I'm going to try sound drivers...
# Controls all sound devices
#controller	snd0
# Yamaha OPL-2/OPL-3 FM - for SB, SB Pro, SB16, PAS
#device opl0     at isa? port 0x388
controller pnp0
#device pcm0 at isa? port ? tty irq 10 drq 1 flags 0x0 vector pcmintr
#device pcm0 at isa? port ? tty flags 0x0 vector pcmintr
# The following copied from the README in sys/i386/isa/snd
device pcm0 at isa ? port? tty irq 7 drq 1 vector pcmintr
================================================================
$ dmesg
Copyright (c) 1992-1998 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California.  All rights reserved.

FreeBSD 2.2.7-STABLE #0: Fri Oct 23 09:06:23 EDT 1998
    root@:/usr/src/sys/compile/HEART-OF-GOLD
CPU: Pentium II (299.15-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x634  Stepping=4
  Features=0x80f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,MMX>
real memory  = 67108864 (65536K bytes)
avail memory = 63442944 (61956K bytes)
Probing for devices on PCI bus 0:
chip0 <Intel 82440FX (Natoma) PCI and memory controller> rev 2 on pci0:0:0
chip1 <Intel 82371SB PCI-ISA bridge> rev 1 on pci0:7:0
chip2 <Intel 82371SB IDE interface> rev 0 on pci0:7:1
vga0 <VGA-compatible display device> rev 0 int a irq 11 on pci0:11:0
de0 <Digital 21140A Fast Ethernet> rev 34 int a irq 10 on pci0:15:0
de0: 21140A [10-100Mb/s] pass 2.2
de0: address 00:c0:f0:32:35:5c
Probing for PnP devices:
CSN 1 Vendor ID: YMH0030 [0x3000a865] Serial 0x80860001
mss_attach <Yamaha SA3>1 at 0x530 irq 5 dma 0:1 flags 0x11
setting up yamaha registers
set yamaha master volume to maxpcm1 (CS423x/Yamaha <Yamaha SA3> sn 0x80860001) at 0x530 irq 5 drq 0 flags 0x11 id 13
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <16 virtual consoles, flags=0x0>
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
psm0 at 0x60-0x64 irq 12 on motherboard
psm0: model Generic PS/2 mouse, device ID 0
pcm0 not found at 0xffffffff
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: unit 0 (wd0): <WDC AC24300L>
wd0: 4112MB (8421840 sectors), 8912 cyls, 15 heads, 63 S/T, 512 B/S
wdc0: unit 1 (atapi): <TOSHIBA CD-ROM XM-6102B/1112>, removable, accel, ovlap, dma, iordy
wcd0: 4133/4134Kb/sec, 256Kb cache, audio play, 255 volume levels, ejectable tray
wcd0: 120mm data disc loaded, unlocked
npx0 flags 0x1 on motherboard
npx0: INT 16 interface
de0: enabling 100baseTX port
How strange... mss_intr with no reason!
How strange... mss_intr with no reason!
unsupported subdevice 8

$ cat /dev/sndstat 
FreeBSD Audio Driver (981022) Oct 23 1998 09:06:10
Installed devices:
pcm1: <Yamaha SA3> at 0x530 irq 5 dma 0:1
sequencer1: <???> at 0x530 (not functional)


================================================================
[some of the output from pnpinfo]
Checking for Plug-n-Play devices...

Card assigned CSN #1
Vendor ID YMH0030 (0x3000a865), Serial Number 0x80860001
PnP Version 1.0, Vendor Version 1
Device Description: OPL3-SA3 Snd System 

Logical Device ID: YMH0021 0x2100a865 #0
        Vendor register funcs 00
[...]
Logical Device ID: YMH0022 0x2200a865 #1
        Vendor register funcs 00
Compatible Device ID: PNPb02f (2fb0d041)


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



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