From owner-freebsd-stable@FreeBSD.ORG Wed Mar 2 18:51:39 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30FDC16A4CE for ; Wed, 2 Mar 2005 18:51:39 +0000 (GMT) Received: from mail25.syd.optusnet.com.au (mail25.syd.optusnet.com.au [211.29.133.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6100043D41 for ; Wed, 2 Mar 2005 18:51:38 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) j22Ipa66030160 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 3 Mar 2005 05:51:37 +1100 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])j22Ipa7l002319; Thu, 3 Mar 2005 05:51:36 +1100 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost)j22IpaGD002318; Thu, 3 Mar 2005 05:51:36 +1100 (EST) (envelope-from pjeremy) Date: Thu, 3 Mar 2005 05:51:36 +1100 From: Peter Jeremy To: Rob Message-ID: <20050302185136.GA2302@cirb503493.alcatel.com.au> References: <20050302104641.44708.qmail@web54004.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050302104641.44708.qmail@web54004.mail.yahoo.com> User-Agent: Mutt/1.4.2i cc: FreeBSD Stable Subject: Re: kernel config: sound device with or without quotes X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 18:51:39 -0000 On Wed, 2005-Mar-02 02:46:41 -0800, Rob wrote: >In /usr/src/sys/conf/NOTES is the list of supported >sound devices. I get confused by the pressence and >absence of quotes here. Are these quotes only >decoration, or really needed. For example: > >device "snd_ad1816" >device snd_cmi > >If they are needed, it confuses me why one sound >device needs quotes, and another doesn't? For hysterical raisins, config(8) parses bareword arguments to "device" as ($device_name, $device_instance) = /([a-zA-Z_]+)([0-9]*)/; The double quotes force the first entry to be treated as a device "snd_ad1816", rather than the 1817th instance of "snd_ad". >How does that affect the use of loading them in >/boot/loader.conf? How about following two: > >snd_ad1816_load="YES" >snd_cmi_load="YES" > >Is that OK? Yes. The loader has a different parsing algorithm: ${device_name}_load="{YES,NO}" and hint.$device_name.$device_instance.flag="VALUE" -- Peter Jeremy