From: Takashi Iwai Subject: Re: [linuxsh-dev] AICA driver for dreamcast Date: Mon, 29 May 2006 14:35:47 +0200 Message-ID: References: <1148841646.9224.19.camel@localhost.localdomain> <20060528193211.GA10078@linux-sh.org> 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 mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 30171168 for ; Mon, 29 May 2006 14:35:54 +0200 (MEST) In-Reply-To: <20060528193211.GA10078@linux-sh.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Paul Mundt Cc: Adrian McMenamin , alsa-devel@alsa-project.org, linux-sh List-Id: alsa-devel@alsa-project.org At Sun, 28 May 2006 22:32:11 +0300, Paul Mundt wrote: > > Hi Adrian, > > It's getting better, but still a ways to go.. > > On Sun, May 28, 2006 at 07:40:46PM +0100, Adrian McMenamin wrote: > > static int index = -1; > > static char *id; > > static int enable = 1; > > > > module_param(index, int, 0444); > > MODULE_PARM_DESC(index, "Index value for " CARD_NAME " soundcard."); > > module_param(id, charp, 0444); > > MODULE_PARM_DESC(id, "ID string for " CARD_NAME " soundcard."); > > module_param(enable, bool, 0644); > > MODULE_PARM_DESC(enable, "Enable " CARD_NAME " soundcard."); > > > I'm not sure I see what the point of id and enable are. id doesn't appear > to be used at all, and enable seems superfluous. The id should be passed to the second argument of snd_card_new(). enable is referred indeed at open. This option for drivers with a single instance exists usually only for backward compatibility. The sound configuration program sets up often this option unconditionally. Takashi