From alsa-user-owner@alsa.jcu.cz  Sun May 10 07:20:29 1998
Received: from waldorf.informatik.uni-dortmund.de (waldorf.informatik.uni-dortmund.de [129.217.4.42])
	by marvin.jcu.cz (8.8.8/8.8.8) with ESMTP id HAA19036
	for <alsa-user@alsa.jcu.cz>; Sun, 10 May 1998 07:20:16 +0200
Received: from guiness.informatik.uni-dortmund.de (guiness.informatik.uni-dortmund.de [129.217.26.38]) by waldorf.informatik.uni-dortmund.de  with ESMTP id HAA00581; Sun, 10 May 1998 07:20:02 +0200 (MES)
Received: from tuborg.informatik.uni-dortmund.de (tuborg.informatik.uni-dortmund.de [129.217.26.41])
          by guiness.informatik.uni-dortmund.de (8.8.4/8.8.4) with ESMTP
	  id HAA19571; Sun, 10 May 1998 07:16:33 +0200 (MET DST)
Received: (from kreilede@localhost)
          by tuborg.informatik.uni-dortmund.de (8.8.5/8.8.4)
	  id HAA14510; Sun, 10 May 1998 07:19:52 +0200 (MET DST)
To: Jaroslav Kysela <perex@jcu.cz>
Cc: alsa-user@alsa.jcu.cz
Subject: Re: SB16 PnP
References: <Pine.LNX.3.96.980509214159.16071E-100000@entry.jcu.cz>
From: Juergen Kreileder <kreilede@guiness.informatik.uni-dortmund.de>
Date: 10 May 1998 07:19:51 +0200
Message-ID: <vto4syyya6g.fsf@tuborg.informatik.uni-dortmund.de>
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

Jaroslav Kysela <perex@jcu.cz> writes:

> On Sat, 9 May 1998, Juergen Kreileder wrote:
> 
> > Hi!
> > 
> > Is it possible to use the alsadriver with the isapnputils?
> > If I do 'modprobe snd-sb16' I get this message:
> > snd: SB16 [0x220]: unable to set DMA & IRQ (PnP device?)
> > snd: SB16 [0x220]: irqreg=0xf4, dmareg=0x16, mpureg = 0xff
> > snd: Sound Blaster 16 soundcard #1 not found at 0x220 or device busy
> > snd: Sound Blaster 16 soundcard #2 not found or device busy
> > 
> > from conf.modules:
> > options snd-sb16 snd_index=1 snd_port=0x220 snd_irq=7 snd_dma8=1 snd_dma16=5 snd_mpu_port=0x330
> > 
> > System is:
> > Linux duke 2.1.101 #1 SMP Sat May 9 18:36:03 CEST 1998 i686 unknown
> 
> You have probably wrong configuration for isapnp program... If you have
> PnP device - resource settings for ALSA driver must exactly match to
> configuration which is activated with isapnp program. ALSA driver can't
> change hardware settings for SB PnP soundcards...
> 
> If you have still trouble, please, send me your configuration file for
> isapnp program. I'm testing ALSA driver with SB AWE 64 - this is PnP
> soundcard and is activated with isapnp, too...
> 
> 					Jaroslav
> 

The entry for the card looks like that:

(CONFIGURE CTL00f0/-1 
	(LD 0
		(INT 0 (IRQ 7 (MODE +E)))
		(DMA 0 (CHANNEL 1))
		(DMA 1 (CHANNEL 5))
		(IO 0 (BASE 0x0220))
		(IO 1 (BASE 0x0330))
		(IO 2 (BASE 0x0388))
		(ACT Y)))

This seems to work:
Board 1 has Identity 6d ff ff ff ff f0 00 8c 0e:  CTL00f0 Serial No -1 [checksum 6d]
Peek(CTL00f0/-1)[0][0x70](INT 0) is 0x0702, (7,2)
Peek(CTL00f0/-1)[0][0x60](IO  0) is 0x0220, (2,32)
Peek(CTL00f0/-1)[0][0x62](IO  1) is 0x0330, (3,48)
Peek(CTL00f0/-1)[0][0x64](IO  2) is 0x0388, (3,136)
Peek(CTL00f0/-1)[0][0x74](DMA 0) is 0x01, (1)
Peek(CTL00f0/-1)[0][0x75](DMA 1) is 0x05, (5)

insmod snd
insmod snd-mixer
insmod snd-pcm  
insmod snd-pcm-oss
insmod snd-midi
insmod snd-sb-dsp
insmod snd-mpu401-uart

Then, iff I do
insmod -sv snd-sb16 snd_irq=7 snd_port=0x220 snd_dma8=1 snd_dma16=5 snd_mpu_port=0x330
syslog says:
May 10 07:19:01 duke kernel: snd: SB16 [0x220]: unable to set DMA & IRQ (PnP device?) 
May 10 07:19:01 duke kernel: snd: SB16 [0x220]: irqreg=0xf4, dmareg=0x16, mpureg = 0xff 
May 10 07:19:01 duke kernel: snd: Sound Blaster 16 soundcard #1 not found at 0x220 or device busy 
May 10 07:19:01 duke kernel: snd: Sound Blaster 16 soundcard #2 not found or device busy 
May 10 07:19:01 duke insmod: /lib/modules/2.1.101/misc/snd-sb16.o: init_module: Device or resource busy

Bye,
	Jrgen

-- 
Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
Baroper Strasse 301, D-44221 Dortmund, Germany
Phone: ++49 231/755-5806, Fax: ++49 231/755-5802

