From alsa-devel-owner@alsa.jcu.cz  Tue Nov 24 12:17:01 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 MAA02539;
	Tue, 24 Nov 1998 12:16:36 +0100
Date: Tue, 24 Nov 1998 12:16:36 +0100 (CET)
From: Jaroslav Kysela <perex@jcu.cz>
To: Christian Fischbach <fishbach@eucmos.sim.ucm.es>
cc: alsa-devel@jcu.cz
Subject: Re: Es1869 fist running version ...
In-Reply-To: <Pine.OSF.3.96.981124112612.17190B-100000@eucmos.sim.ucm.es>
Message-ID: <Pine.LNX.3.96.981124120249.8322C-100000@entry.jcu.cz>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

On Tue, 24 Nov 1998, Christian Fischbach wrote:

> Hello!
> 
> How I promised, here is a version which works with the Es1869 in
> FullDuplexMode:
> 
> http://www-users.rwth-aachen.de/Christian.Fischbach/alsadrv.html
> 
> I have some problems with this www-provider so it may be that you will
> first be able to get this page tomorrow.
> 
> I had some problems to get the second audio channel working, because the
> DS1869.pdf contains many errors. And I am still working because the mixers
> do not work well, yet. They work with alsamixer but there are some errors
> with other applications, for example SLAB (when you select NO CONTROLS in
> SLAP, slab works very fine!)!
> 
> On my WWW-Pages you find the whole package, but the only files which I
> changed/created are:
> 
> cards/audiodrive1869.c
> import/es1869.h
> lowlevel/isa/es1869.c
> lowlevel/isa/es1869_export.sym
> 
> And you will have do add the Soundcard-Type-Definition in one headerfile
> which I have not in mind at the moment.

OK. After you will be thinking that source should go to ALSA driver,
please send me unified diff.. 

> One question:
> 
> I wrote my name in the heads of the files, although I copyed many things
> form the es1688 driver. Please tell me wich is the correct GNU specific
> header. For example:
> 
> /* Copyright by Christian Fischbach and Jaroslav K. */
> 
> OR
> 
> /* Copyright by .... original by Jaroslav K. */

I don't know, too. Have someone any idea?

> So far I do not understand many things of the ALSA-Driver. Ther are some
> things the seam a littlebit strange to me:
> 
> Why are there two structs: pcm1 and pcm which are connected a bit
> compilcated?

PCM structure is for ALL PCM devices. PCM1 is specific midlevel code for
soundcards which have ring buffer (such as ISA DMA or PCI DMA). Maybe in
future we may need write some other midlevel code for special hardware.
This is why we have three PCM layers:

	PCM <-> PCM1 <-> lowlevel code

> Is there a way to tell the pcm-mixer that I can activate more than one
> inport-source (because the es1869 has a seperate record-mixer)?

I don't know what is inport-source? You mean record-source? Simply don't
set SND_MIXER_INFO_CAP_EXCL_RECORD.

> Can I control the mayor / minor numbers in any way, because I like to have
> two mixers: /dev/mixer for playbackmixer and /dev/mixer1 for recordmixer.

These things are managed by highter levels. You should register second
mixer for soundcard by simply:

	snd_mixer_register(mixer, 1);

Where 1 is mixer device number... Zero is first mixer for soundcard, one
is second mixer for soundcard...

Note: Second mixer cannot be accessed from OSS compatible programs...

						Jaroslav

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


