Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Mar 2005 09:20:42 -0800
From:      Freddie Cash <fcash-ml@sd73.bc.ca>
To:        freebsd-stable@freebsd.org
Subject:   Re: kernel config: sound device with or without quotes
Message-ID:  <200503020920.43155.fcash-ml@sd73.bc.ca>
In-Reply-To: <20050302104641.44708.qmail@web54004.mail.yahoo.com>
References:  <20050302104641.44708.qmail@web54004.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On March 2, 2005 02:46 am, 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?

You have to put quotes around any device names with numbers in them.  If 
you don't, the kernel config will error out.

> How does that affect the use of loading them in
> /boot/loader.conf? How about following two:

It doesn't affect loader.conf.  You only put quotes around the value of 
the variable ("YES" or "NO") not around the variable names.

> snd_ad1816_load="YES"
> snd_cmi_load="YES"

> Is that OK?

Yes.

However, if you add the devices to the kernel config file, you don't 
need to add them to loader.conf.  loader.conf is used to load kernel 
modules.  You need to decide whether to compile all devices into the 
kernel, or load some as kernel modules.

Personally, I like to put devices that won't change (like USB, ATA, SMB, 
etc) into the kernel config file.  And load devices that will change 
(like NICs, soundcards, etc) as modules via loader.conf.  Saves time 
and effort when I decide to swap out NICs and test soundcards and 
similar.

-- 
Freddie Cash, CCNT CCLP        Helpdesk / Network Support Tech.
School District 73             (250) 377-HELP [377-4357]
fcash-ml@sd73.bc.ca



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503020920.43155.fcash-ml>