Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jan 1999 15:34:10 -0600
From:      William McVey <wam@sa.fedex.com>
To:        freebsd-multimedia@FreeBSD.ORG
Subject:   SoundBlaster Config problem
Message-ID:  <199901312134.PAA05565@s07.sa.fedex.com>

next in thread | raw e-mail | index | archive | help
I've been struggling to get audio working on my system at work for
a while now and have been unsuccessful.  My end goal is to be able
to listen to audio CDs, listen to MP3s, and maybe do gaming...

I've tried using the snd drivers and have recently tried working with the 
pcm drivers.  My system is running FreeBSD 2.2.8-RELEASE.  When I booted 
my system with:
	controller     snd0
	device sb0      at isa? port 0x220 irq 7 conflicts drq 1 vector sbintr
	device sbxvi0   at isa? drq 5
	device sbmidi0  at isa? port 0x330
	device mpu0     at isa? port 0x330 irq 6 drq 0
	device uart0 at isa? port 0x330 irq 5 vector "m6850intr"

My boot messages showed:
	Jan 19 18:50:40 mohawk /kernel: sb0 at 0x220 irq 6 drq 1 on isa
	Jan 19 18:50:40 mohawk /kernel: sb0: <SoundBlaster Pro 3.2>

I'm now running a kernel with the above devices commented out, and 
have the following:
	controller      pnp0
	device pcm0 at isa? port ? tty irq 10 drq 1 flags 0x0 vector pcmintr

My boot messages now show:
	pcm0 at 0x220 irq 10 drq 1 on isa

/dev/sndstat reads:
	FreeBSD Audio Driver (981022) Jan 31 1999 13:10:35
	Installed devices:
	pcm0: <SoundBlaster Pro 3.2> at 0x220 irq 10 dma 1:1

Now, here's the problem... I can't get any sound out of my headphones.
I do (as I saw in an archived mail):
	cat /usr/local/lib/exmh-2.0.2/drip.au > /dev/audio0

and I get a nice long pause, but no sound.  I've also seen a variety of kernel
error messages:
	SoundBlaster: DSP Command(0xd0) timeout. IRQ conflict ?
	SoundBlaster: DSP Command(0xd3) timeout. IRQ conflict ?
	<SoundBlaster Pro 3.2>0 open: device busy
	Jan 31 14:32:39 mohawk /kernel: SoundBlaster Pro 3.2>0 open: device busy

Note that the device busy errors appear, even though lsof(8) doesn't show
any processes with any sound related devices open.  My devices look like:
	lrwxrwxrwx  1 root  wheel         6 Jan 31 14:08 /dev/audio@ -> audio0
	crw-rw-rw-  1 root  wheel   30,   4 Jan 31 14:09 /dev/audio0
	lrwxrwxrwx  1 root  wheel         4 Jan 31 14:08 /dev/dsp@ -> dsp0
	crw-rw-rw-  1 root  wheel   30,   3 Jan 31 14:11 /dev/dsp0
	lrwxrwxrwx  1 root  wheel         5 Jan 31 14:08 /dev/dspW@ -> dspW0
	crw-rw-rw-  1 root  wheel   30,   5 Jan 31 14:07 /dev/dspW0

I don't think my sound card is a pnp device; but pnpinfo shows:

	Checking for Plug-n-Play devices...
	Card assigned CSN #1
	Vendor ID ADS7181 (0x81719304), Serial Number 0xffffffff
	PnP Version 1.0, Vendor Version 32
	Device Description: Analog Devices AD1816A

	Logical Device ID: ADS7180 0x80719304 #0
		Device supports I/O Range Check
	TAG Start DF
	Good Configuration
	    IRQ: 5 7  - only one type (true/edge)
	    DMA: channel(s) 1 
		8-bit, not a bus master, count by byte, , Type F
	    DMA: channel(s) 0 1 3 
		8-bit, not a bus master, count by byte, , Type F
	    I/O Range 0x220 .. 0x240, alignment 0x20, len 0x10
		[16-bit addr]
	    I/O Range 0x388 .. 0x388, alignment 0x8, len 0x4
		[16-bit addr]
	    I/O Range 0x500 .. 0x560, alignment 0x10, len 0x10
		[16-bit addr]
	TAG Start DF
	    IRQ: 5 7 10  - only one type (true/edge)
	    DMA: channel(s) 0 1 3 
		8-bit, not a bus master, count by byte, , Type F
	    DMA: channel(s) 0 1 3 
		8-bit, not a bus master, count by byte, , Type F
	    I/O Range 0x220 .. 0x240, alignment 0x20, len 0x10
		[16-bit addr]
	    I/O Range 0x388 .. 0x388, alignment 0x8, len 0x4
		[16-bit addr]
	    I/O Range 0x500 .. 0x560, alignment 0x10, len 0x10
		[16-bit addr]
	TAG Start DF
	    IRQ: 5 7 9 10 11 15  - only one type (true/edge)
	    DMA: channel(s) 0 1 3 
		8-bit, not a bus master, count by byte, , Type F
	    DMA: channel(s) 0 1 3 
		8-bit, not a bus master, count by byte, , Type F
	    I/O Range 0x220 .. 0x2e0, alignment 0x20, len 0x10
		[16-bit addr]
	    I/O Range 0x388 .. 0x3b8, alignment 0x8, len 0x4
		[16-bit addr]
	    I/O Range 0x500 .. 0x560, alignment 0x10, len 0x10
		[16-bit addr]
	TAG Start DF
	Sub-optimal Configuration
	    IRQ: 5 7 9 10 11 15  - only one type (true/edge)
	    DMA: channel(s) 0 1 3 
		8-bit, not a bus master, count by byte, , Type F
	    DMA: channel(s) 
		8-bit, not a bus master, count by byte, , Type F
	    I/O Range 0x220 .. 0x2e0, alignment 0x20, len 0x10
		[16-bit addr]
	    I/O Range 0x388 .. 0x3b8, alignment 0x8, len 0x4
		[16-bit addr]
	    I/O Range 0x500 .. 0x560, alignment 0x10, len 0x10
		[16-bit addr]
	TAG End DF

	Logical Device ID: ADS7181 0x81719304 #1
		Device supports I/O Range Check
	Compatible Device ID: PNPb006 (06b0d041)
	TAG Start DF
	Good Configuration
	    IRQ: 5 7 9 11  - only one type (true/edge)
	    I/O Range 0x300 .. 0x330, alignment 0x30, len 0x2
		[16-bit addr]
	TAG Start DF
	    IRQ: 5 7 9 10 11 15  - only one type (true/edge)
	    I/O Range 0x300 .. 0x420, alignment 0x30, len 0x2
		[16-bit addr]
	TAG End DF

	Logical Device ID: ADS7182 0x82719304 #2
		Device supports I/O Range Check
	Compatible Device ID: PNPb02f (2fb0d041)
	TAG Start DF
	Good Configuration
	    I/O Range 0x200 .. 0x200, alignment 0x8, len 0x8
		[16-bit addr]
	TAG Start DF
	    I/O Range 0x200 .. 0x208, alignment 0x8, len 0x8
		[16-bit addr]
	TAG End DF
	End Tag

	Successfully got 48 resources, 3 logical fdevs
	-- card select # 0x0001

	CSN ADS7181 (0x81719304), Serial Number 0xffffffff

	Logical device #0
	IO:  0x0220 0x0388 0x0500 0x0000 0x0000 0x0000 0x0000 0x0000
	IRQ 5 0
	DMA 0 3
	IO range check 0x00 activate 0x01

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

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

If some kind soul out there could help me, I'd appreciate it.

	  -- William

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?199901312134.PAA05565>