From alsa-devel-owner@alsa.jcu.cz  Thu Nov 26 19:14:02 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 TAA03199
	for <alsa-devel@alsa.jcu.cz>; Thu, 26 Nov 1998 19:13:54 +0100
Date: Thu, 26 Nov 1998 19:13:54 +0100 (CET)
From: Jaroslav Kysela <perex@jcu.cz>
To: alsa-devel@alsa.jcu.cz
Subject: MINOR numbers - READ PLEASE!!!
Message-ID: <Pine.LNX.3.96.981126185312.4393E-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

Hi,

	I used little bit strong subject due to major thing for all kernel
drivers. As I wrote some time ago - I reserved char major number 116 for
ALSA sound driver. Current minor scheme uses OSS major number (minors
128-255) for ALSA purpose.
	As you see - we have now full range 0-255 minor numbers for new
sound driver. I want use this range soon as possible and my plan is also
integrate OSS emulation to OSS sound-core which should be find in latest
2.1.X kernels. This means that user should use both OSS + ALSA driver in
one machine, but ALSA native application willn't work with OSS drivers,
of course.

OK. Bellow is new minor number allocation proposal. Please, read this
carefully and if you have some other ideas or changes - reply, please...
This thing is very important (due to future limits).

0		1 sequencer
1-23		reserved
24-31		8 * 1 control interface
32-63		8 * 4 mixer devices
64-95		8 * 4 rawmidi devices
96-103		8 * 1 raw FM devices
104-127		reserved
128-255		8 * 16 PCM devices

Y * X -> Y is max number of soundcards (always 8)
	 X is max number of devices per soundcard

I preffer continuous regions for devices. Maybe we can use OSS-like
mapping scheme - use 32 minors for one soundcard (0-31 = first soundcard, 
32-63 = second soundcard etc...).

							Jaroslav

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



