From owner-freebsd-multimedia@FreeBSD.ORG Wed Apr 19 18:10:15 2006 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5D9716A48E for ; Wed, 19 Apr 2006 18:10:15 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B3B643D53 for ; Wed, 19 Apr 2006 18:09:51 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5F24F.dip.t-dialin.net [84.165.242.79]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.4/8.13.1) with ESMTP id k3JI4lQO057021; Wed, 19 Apr 2006 20:04:47 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k3JI9jaK039422; Wed, 19 Apr 2006 20:09:45 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Wed, 19 Apr 2006 20:10:04 +0200 From: Alexander Leidinger To: John-Mark Gurney Message-ID: <20060419201004.45bf1c26@Magellan.Leidinger.net> In-Reply-To: <20060419155819.GK38619@funkthat.com> References: <20060419110126.4iz4bj0x5wo4wwgk@netchild.homeip.net> <20060419155819.GK38619@funkthat.com> X-Mailer: Sylpheed-Claws 2.1.0 (GTK+ 2.8.17; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: multimedia@freebsd.org Subject: Re: drop snd_ from DRIVER_MODULEs... X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 18:10:16 -0000 Am Wed, 19 Apr 2006 08:58:19 -0700 schrieb John-Mark Gurney : > # cat /dev/sndstat > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: at io 0xcc00 irq 5 kld via82c686 (1p/1r/0v channels duplex default) > > So, the file name is the same, the only real user difference from this > change is that the cat /dev/sndstat says via82c686 instead of > snd_via82c686... This is from the PCM_KLDSTRING part of the patch, and > I only changed it to match the kernel module name, so I don't have a > preference as to if it changes or not... I think sndstat should print the file name of the module. IIRC we refer to this string in some docs and tell the user to use it as to put '_load="YES"' into loader.conf. So if you want to commit your patch, please change PCM_KDLSTRING in src/sys/dev/sound/pcm/sound.h to #define PCM_KLDSTRING(a) ("kld snd_" # a) > also, w/o this change I couldn't of loaded the module the way I did > above, w/o the snd_ prefix... It appears that kldunload doesn't > reference the kldxref file as you can't unload by module name.. :( Maybe another patch to do... or submit an entry for this to the ideas list (http://www.freebsd.org/projects/ideas/). :-) Bye, Alexander. -- Failure is not an option. It comes bundled with your Microsoft product. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 WL http://www.amazon.de/exec/obidos/registry/1FZ4DTHQE9PQ8/ref=wl_em_to/