From alsa-devel-owner@alsa.jcu.cz  Tue Apr 14 17:43:22 1998
Received: from snowcrash.cymru.net (snowcrash.cymru.net [163.164.160.3])
	by marvin.jcu.cz (8.8.8/8.8.8) with ESMTP id RAA21711
	for <alsa-devel@alsa.jcu.cz>; Tue, 14 Apr 1998 17:42:43 +0200
Received: from the-village.bc.nu (the-village.bc.nu [163.164.160.21]) by snowcrash.cymru.net (8.8.7/8.7.1) with SMTP id QAA27536; Tue, 14 Apr 1998 16:42:34 +0100
Received: by the-village.bc.nu (Smail3.1.29.1 #2)
	id m0yP7kT-000aNiC; Tue, 14 Apr 98 16:35 BST
Message-Id: <m0yP7kT-000aNiC@the-village.bc.nu>
From: alan@lxorguk.ukuu.org.uk (Alan Cox)
Subject: Re: ALSA stuff
To: perex@jcu.cz
Date: Tue, 14 Apr 1998 16:35:48 +0100 (BST)
Cc: alan@lxorguk.ukuu.org.uk, alsa-devel@alsa.jcu.cz
In-Reply-To: <Pine.LNX.3.96.980414115500.1355A-100000@entry.jcu.cz> from "Jaroslav Kysela" at Apr 14, 98 01:01:11 pm
Content-Type: text
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

> I recommend register to minor number (which ALSA driver does in it's
> demultiplexer). ALSA driver uses minors 128-255 for native devices while
> OSS/Lite uses minors from 0-127 (ALSA driver uses minors 0-127 for
> compatible devices, of course). I'm thinking that this is more universal,
> too..
> 
>    int error = register_sounddevice(&file_ops, int minor)
> 
>    unregister_sounddevice(int minor)
> 
> Comments?

I don't want the low level layers to know about assignment of minor numbers.
Suppose I have an OSS driver using minor 0 and ALSA driver tries to find
a minor number. If there are more device types then let me know what you
need and instead of minors you should register by type - be it a mixer,
or something new.

Alan


