From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 17 16:04:04 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AED7C1065670 for ; Fri, 17 Feb 2012 16:04:04 +0000 (UTC) (envelope-from alex-goncharov@comcast.net) Received: from qmta08.westchester.pa.mail.comcast.net (qmta08.westchester.pa.mail.comcast.net [76.96.62.80]) by mx1.freebsd.org (Postfix) with ESMTP id 5789C8FC1A for ; Fri, 17 Feb 2012 16:04:04 +0000 (UTC) Received: from omta23.westchester.pa.mail.comcast.net ([76.96.62.74]) by qmta08.westchester.pa.mail.comcast.net with comcast id b3f71i0081c6gX858444Hf; Fri, 17 Feb 2012 16:04:04 +0000 Received: from hans3 ([66.30.197.229]) by omta23.westchester.pa.mail.comcast.net with comcast id b4441i00Y4xSlmi3j444MT; Fri, 17 Feb 2012 16:04:04 +0000 Received: from algo by hans3 with local (Exim 4.77 (FreeBSD)) (envelope-from ) id 1RyQHy-000IjV-UR; Fri, 17 Feb 2012 11:04:02 -0500 From: Alex Goncharov To: matt In-reply-to: <4F3E72B7.2050005@gmail.com> (message from matt on Fri, 17 Feb 2012 07:31:03 -0800) References: <201202171612.36971.hselasky@c2i.net> <4F3E72B7.2050005@gmail.com> Message-Id: Sender: Alex Goncharov Date: Fri, 17 Feb 2012 11:04:02 -0500 Cc: freebsd-hackers@freebsd.org, hselasky@c2i.net Subject: Re: 8 to 9: Kernel modularization -- did it change? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alex Goncharov List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 16:04:04 -0000 ,--- You/matt (Fri, 17 Feb 2012 07:31:03 -0800) ----* | It's in the kernel in later versions of 9-CURRENT and in 9-RELEASE on. | | You can't kldload or unload it because it's not a module, but part of | the kernel. | That doesn't preclude the presence of the file, I think. | | 'kldstat -v | less' should show you what's "in there". Thanks, indeed: ---------------------------------------- uname -sr; echo ==; kldstat | grep hda; echo ==; kldstat -v | grep hda => FreeBSD 8.2-STABLE == 11 1 0xffffffff81039000 14580 snd_hda.ko == 11 1 0xffffffff81039000 14580 snd_hda.ko (/boot/kernel/snd_hda.ko) 456 hdac/snd_hda_pcm 457 pci/snd_hda ---------------------------------------- uname -sr; echo ==; kldstat | grep hda; echo ==; kldstat -v | grep hda => FreeBSD 9.0-STABLE == == 253 pci/snd_hda 252 hdac/snd_hda_pcm ---------------------------------------- But am I not screwed up then? -> I need to adjust the sound card pin assignments so that the sound can be directed to the headphones when they are plugged in. With FreeBSD 8, on several machines, I had gone through somewhat painful but ultimately meaningful and manageable routine of building the device.hints file. Essentially (consider the following an non-ordered set): kldunload snd_hda.ko kenv | grep hdac sysctl hw.snd.verbose sysctl hw.snd.verbose=4 kldload snd_hda.ko cat /dev/sndstat dmesg | grep ^hdac0 kenv hint.hdac.0.cad0.nid15.config="as=1 seq=15 device=Headphones" kldload snd_hda.ko I don't believe I can do it now that the snd_hda module cannot be reloaded in a modified kernel environment. So, how do I go about finding and modifying the sound card pin assignments in FreeBSD 9? (If I can't do it without temporarily installing FreeBSD 8, it would be a huge disappointment. :) Thanks, -- Alex -- alex-goncharov@comcast.net --