From alsa-user-owner@alsa.jcu.cz  Fri Oct  2 12:15:13 1998
Received: from entry.jcu.cz (IDENT:perex@entry.jcu.cz [160.217.1.111])
	by marvin.jcu.cz (8.9.1a/8.9.1) with SMTP id MAA06113;
	Fri, 2 Oct 1998 12:12:26 +0200
Date: Fri, 2 Oct 1998 12:12:05 +0200 (CEST)
From: Jaroslav Kysela <perex@jcu.cz>
To: harryrat@kawo1.rwth-aachen.de
cc: alsa-user@alsa.jcu.cz
Subject: Re: PCM probs with 2 sndcards ?
In-Reply-To: <Pine.LNX.3.96.981002113037.418A-100000@gambit.kawo1.rwth-aachen.de>
Message-ID: <Pine.LNX.3.96.981002120348.8822L-100000@entry.jcu.cz>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

On Fri, 2 Oct 1998 harryrat@kawo1.rwth-aachen.de wrote:

> On Mon, 28 Sep 1998, Jaroslav Kysela wrote:
> 
> > 
> > There must be probably some hidden hardware confict.. GUS probably doesn't
> > generate interrupts (you can check this by cat /proc/interrupts). Check
> > IRQ lines and DMA channels and try rearrange these resources if possible.
> > 
> > PCM code for two soundcards is working (tested before one minute with
> > GUS PnP and Ensoniq ES1370).
> > 
> 
> Ok, I checked interrupts and io ports (darn, feel like DOS 3.0 times) but
> couldn't find anything...
> And now things are gettin even more strange...
> I tried to use the pcm.c trest proggy for the SB16 (changed therefor the
> card number of the pcm open calls from 0 to 1)...all I got was:
> 
> >>>>> METHOD 1
> Record open error: Device or resource busy
> >>>>> METHOD 2
> Playback open error: Device or resource busy
> >>>>> METHOD 3
> Duplex open error: Device or resource busy
> 
> 
> 
> here are the mod lines :
> 
> options snd snd_major=14 snd_cards_limit=2
> options snd-interwave snd_index=1 snd_id="Gravis Ultrasound PNP" snd_port=0x220 snd_irq=5 snd_dma1=1 snd_dma2=5
> options snd-sb16 snd_index=2 snd_id="Soundblaster 32 PNP" snd_port=0x240 snd_irq=10 snd_dma8=6 snd_dma16=7

Huh.. You found a little hidden code in ALSA. You have broken snd_dma8
channel which ALSA disable without warning. You must use values 0,1,3 for
snd_dma8 parameter for snd-sb16!!!! This is 8-bit DMA channel, not
16-bit.. You cannot use duplex for one active DMA channel, of course.

						Jaroslav

-----
Jaroslav Kysela <perex@jcu.cz>
Academic Computer Centre, University of South Bohemia
Branisovska 31, C. Budejovice, CZ-370 05 Czech Republic


