Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Dec 1999 08:52:45 -0500 (EST)
From:      patrick@whetstonelogic.com
To:        bleez@netaxs.com
Cc:        freebsd-current@FreeBSD.ORG, msmith@FreeBSD.ORG
Subject:   Re: pcm/sbc and Avance Logic ALS-120
Message-ID:  <199912251352.IAA05520@p.wl.vg>
In-Reply-To: <Pine.BSF.4.20.9912241226130.19515-100000@gravy.kishka.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--0-1804289383-946129965=:5519
Content-Type: TEXT/plain; CHARSET=US-ASCII

On 24 Dec, Bryan Liesner wrote:
> On Fri, 24 Dec 1999 patrick@whetstonelogic.com wrote:
> 
> <>unknown0: <PnP Sound Chip> at port 0x220-0x22f irq 5 drq 1,0 on isa0
> <>sbc0: <Avance Logic ALS120> at port 0x388-0x38f on isa0
> <>sbc0: alloc_resource
> <>device_probe_and_attach: sbc0 attach returned 6
> <>unknown1: <PnP Sound Chip> at port 0x208-0x20f on isa0
> <>unknown2: <PnP Sound Chip> at port 0x330-0x331 irq 9 on isa0
> 
> Try this patch.  I had the exact problem with my ALS 110, and I
> submitted a patch fixing an error in the device number.  I suspect
> that all of the ALS devices end with 0, not 1.  I didn't want to
> submit it with the ALS 120 fix because I couldn't test it.
> 
> --- /usr/src/sys/dev/sound/isa/sbc.c	Tue Dec 21 20:38:03 1999
> +++ sbc.c	Fri Dec 24 12:24:59 1999
> @@ -200,13 +200,13 @@
>  	{0x42008c0e, "Creative SB AWE64"},		/* CTL0042 */
>  	{0x43008c0e, "Creative ViBRA16X"},		/* CTL0043 */
>  	{0x44008c0e, "Creative SB AWE64 Gold"},		/* CTL0044 */
>  	{0x45008c0e, "Creative SB AWE64"},		/* CTL0045 */
>  
>  	{0x01100000, "Avance Asound 110"},		/* @@@1001 */
> -	{0x01200001, "Avance Logic ALS120"},		/* @@@2001 */
> +	{0x01200000, "Avance Logic ALS120"},		/* @@@2001 */
>  
>  	{0x68187316, "ESS ES1868"},			/* ESS1868 */
>  	{0x69187316, "ESS ES1869"},			/* ESS1869 */
>  	{0xacb0110e, "ESS ES1869 (Compaq OEM)"},	/* CPQb0ac */
>  	{0x79187316, "ESS ES1879"},			/* ESS1879 */
>  	{0x88187316, "ESS ES1888"},			/* ESS1888 */
> 

This patch works so that the kernel detects it properly.  
sbc0: setting card to irq 5, drq 1, 0
pcm0: <SB DSP 4.02> on sbc0
unknown0: <PnP Sound Chip> at port 0x388-0x38f on isa0
unknown1: <PnP Sound Chip> at port 0x208-0x20f on isa0
unknown2: <PnP Sound Chip> at port 0x330-0x331 irq 9 on isa0

However any attempt to play a .wav file (using waveplay or splay), I
get:
p:patrick# waveplay /usr/local/share/sounds/KDE_Startup.wav
File name     : /usr/local/share/sounds/KDE_Startup.wav
Sampling rate : 22050 Hz
Bits/Sample   : 16 Bits
Channels      : 1
Size          : 362456 Bytes

openDSP: Device not configured

(I couldn't find the device to create in /dev except for /dev/snd0 and
/dev/snd1, so that is what I made.)

cat /dev/sndstat gives me:
p:root# cat /dev/sndstat
FreeBSD Audio Driver (newpcm) Dec 24 1999 08:03:11
Installed devices:
pcm0: <SB DSP 4.02> at io 0x220 irq 5 drq 1:0 (1/1 channels duplex)

Patrick

The pnpinfo dump is attached. 


--0-1804289383-946129965=:5519
Content-Type: TEXT/plain; CHARSET=US-ASCII
Content-Description: pnpinfo.Avance120

Checking for Plug-n-Play devices...

Card assigned CSN #1
Vendor ID ALS0120 (0x20019305), Serial Number 0xffffffff
PnP Version 1.0, Vendor Version 0
Device Description: PnP Sound Chip                           

Logical Device ID: @@@2001 0x01200000 #0
	Device supports I/O Range Check
TAG Start DF
Good Configuration
    I/O Range 0x220 .. 0x220, alignment 0x10, len 0x10
	[16-bit addr]
    IRQ: 5  - only one type (true/edge)
    DMA: channel(s) 1 
	8-bit, not a bus master, count by byte, , Type F
    DMA: channel(s) 0 3 
	8-bit, not a bus master, count by byte, , Type F
TAG Start DF
Acceptable Configuration
    I/O Range 0x220 .. 0x280, alignment 0x20, len 0x10
	[16-bit addr]
    IRQ: 5 7 9 10 11  - 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
TAG Start DF
Sub-optimal Configuration
    I/O Range 0x100 .. 0x3f0, alignment 0x10, len 0x10
	[16-bit addr]
    IRQ: 5 7 9 10 11  - only one type (true/edge)
    DMA: channel(s) 0 1 3 
	8-bit, not a bus master, count by byte, , Type F
TAG End DF

Logical Device ID: @H@2001 0x01200001 #1
	Device supports I/O Range Check
TAG Start DF
Good Configuration
    I/O Range 0x388 .. 0x388, alignment 0x8, len 0x8
	[16-bit addr]
TAG Start DF
Acceptable Configuration
    I/O Range 0x300 .. 0x7ff, alignment 0x8, len 0x8
	[16-bit addr]
TAG End DF

Logical Device ID: @P@2001 0x01200002 #2
	Device supports I/O Range Check
TAG Start DF
Good Configuration
    I/O Range 0x200 .. 0x200, alignment 0x8, len 0x8
	[16-bit addr]
TAG Start DF
Acceptable Configuration
    I/O Range 0x200 .. 0x7ff, alignment 0x8, len 0x8
	[16-bit addr]
TAG End DF

Logical Device ID: @X@2001 0x01200003 #3
	Device supports I/O Range Check
TAG Start DF
Good Configuration
    I/O Range 0x330 .. 0x330, alignment 0x2, len 0x2
	[16-bit addr]
    IRQ: 9  - only one type (true/edge)
TAG Start DF
Acceptable Configuration
    I/O Range 0x300 .. 0x3f0, alignment 0x10, len 0x2
	[16-bit addr]
    IRQ: 5 7 9 10 11  - only one type (true/edge)
TAG End DF
End Tag

Successfully got 38 resources, 4 logical fdevs
-- card select # 0x0001

CSN ALS0120 (0x20019305), Serial Number 0xffffffff

Logical device #0
IO:  0x0220 0x0220 0x0220 0x0220 0x0220 0x0220 0x0220 0x0220
IRQ 5 0
DMA 1 0
IO range check 0x00 activate 0x01

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

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

Logical device #3
IO:  0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
IRQ 9 0
DMA 4 4
IO range check 0x00 activate 0x01

--0-1804289383-946129965=:5519--


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




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