Hello, 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? 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? Thanks, Rob. __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/
Oliver Brandmueller
2005-Mar-02 10:58 UTC
kernel config: sound device with or without quotes
Hi. On Wed, Mar 02, 2005 at 02:46:41AM -0800, Rob wrote:> device "snd_ad1816" > device snd_cmi > > If they are needed, it confuses me why one sound > device needs quotes, and another doesn't?One has numbers in it, the other has not.> 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?That's OK that way. - Oliver -- | Oliver Brandmueller | Offenbacher Str. 1 | Germany D-14197 Berlin | | Fon +49-172-3130856 | Fax +49-172-3145027 | WWW: http://the.addict.de/ | | Ich bin das Internet. Sowahr ich Gott helfe. | | Eine gewerbliche Nutzung aller enthaltenen Adressen ist nicht gestattet! |
On Wed, Mar 02, 2005 at 02:46:41AM -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? > > 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, but this two different ways of configuring sound. If you add "device snd_..." in your kernel's config file, you add it directly to the kernel. If you use loader.conf, you load the module at boot time, you don't need to recompile your kernel. I'm not sure, but if you directly add device to your kernel, the module won't be built, and even if it's built, you have no reason to load the module. My 2c ... -- Burelle Marwan, Equipe Bases de Donnees - LRI http://www.cduce.org (burelle@lri.fr | Marwan.Burelle@ens.fr) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050302/fd51e530/attachment.bin
Artem Kuchin
2005-Mar-02 14:21 UTC
Need really cheap IDE mirroring PCI controlled for FreebBSD 4.10
Can anybody recommend cheap IDE mirroring PCI (2.0, not 2.1 or 2.2) controller with just 2 IDE ports which works fine with FreeBSD 4.10 ? It is to be installed on a very old motherboard (1998) and two 40GB IDE driver (more or less modern ones, at least not used ones for sure). -- Regards, Artem Kuchin IT Legion Ltd. Moscow, Russia www.itlegion.ru matrix@itlegion.ru +7 095 232-0338
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
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 <perl> ($device_name, $device_instance) = /([a-zA-Z_]+)([0-9]*)/; </perl> 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