From owner-freebsd-questions@FreeBSD.ORG Sun Sep 14 22:10:02 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 72D4916A4BF for ; Sun, 14 Sep 2003 22:10:02 -0700 (PDT) Received: from ms-smtp-01.southeast.rr.com (ms-smtp-01.southeast.rr.com [24.93.67.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72DBE43FB1 for ; Sun, 14 Sep 2003 22:10:01 -0700 (PDT) (envelope-from jason@ec.rr.com) Received: from ec.rr.com (cpe-024-211-231-149.ec.rr.com [24.211.231.149]) h8F52f0Q012807; Mon, 15 Sep 2003 01:02:41 -0400 (EDT) Message-ID: <3F6547DB.9070709@ec.rr.com> Date: Mon, 15 Sep 2003 01:02:19 -0400 From: jason User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030713 X-Accept-Language: en-us, en MIME-Version: 1.0 To: liuyang99@earthlink.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: trouble with kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2003 05:10:02 -0000 Charlie wrote: >if i am trying to add my sound card device, and add the line device pcm into >kernel do i have to recompile it to make it work and if so how do i recompile? >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > You only need to recompile if you want the driver in the kernel. If you check /boot/kernel there are modules that can be loaded dynamicly so you never need to reboot to add or upgrade drivers(except for agp). If you have a sound blaster the best bet would be to add the line snd_pcm_load="YES" to /boot/loader.conf. This must be done as root. This will cause the driver to be loaded at every boot. Use $kldload snd_pcm.ko to load the driver now. Then use $kldstat to see if the driver is loaded. If that is not the driver you can keep loading and unloading, or check the document for which one to load. If you don't care and just want it to work use $kldload snd_driver.ko and snd_driver_load="YES". This will load all the supported sound drivers and if your card is supported you should now here the music. Check the handbook for more info and for details on getting multichannel sound if you want it, and everything you need to recompile if you want to. Jason