From: Takashi Iwai Subject: Re: [patch] snd-pcsp: depend on CONFIG_EXPERIMENTAL Date: Sun, 18 May 2008 10:01:39 +0200 Message-ID: References: <482E0734.7080003@aknet.ru> <20080517090517.GB3284@cs181133002.pp.htv.fi> <482EB747.6040103@aknet.ru> <482F015D.8030504@keyaccess.nl> <75b66ecd0805172257o765c94eeud0e2c94139f37753@mail.gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (ns2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id DCB8324B76 for ; Sun, 18 May 2008 10:01:43 +0200 (CEST) In-Reply-To: <75b66ecd0805172257o765c94eeud0e2c94139f37753@mail.gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Lee Revell Cc: Rene Herman , Stas Sergeev , Adrian Bunk , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Sun, 18 May 2008 01:57:05 -0400, Lee Revell wrote: > > On Sat, May 17, 2008 at 12:01 PM, Rene Herman wrote: > > it might actually make some sense to reserve a > > #define SND_INDEX_PCSP MAXINT or some such so that this thing gets a > > stable index (and make sure people know to select it through its name > > like in "default:pcsp" and the like). > > Or hardcode index 0, so the distros will have to fix any apps that > address cards by number, use the /dev/dsp API, or assume that output > to card 0 is a sane default... Looks like the sound card enumeration is getting more painful nowadays. Ideally we can forget the loading order once if everything is ported to use the persistent device name. But, it's not easy -- you see even network devices eth0 and so. BTW, with the recent kernel, you can specify "slots" option for snd module. It's a kind of global index, and should avoid the device enum mess, at least, for devices that have beel already configured since the devices that are listed in slots option will be kept safe. See ALSA-Configuration.txt for details. Takashi