From owner-freebsd-stable@FreeBSD.ORG Fri Mar 18 17:22:52 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 215591065675 for ; Fri, 18 Mar 2011 17:22:52 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta14.emeryville.ca.mail.comcast.net (qmta14.emeryville.ca.mail.comcast.net [76.96.27.212]) by mx1.freebsd.org (Postfix) with ESMTP id 0B0178FC17 for ; Fri, 18 Mar 2011 17:22:51 +0000 (UTC) Received: from omta12.emeryville.ca.mail.comcast.net ([76.96.30.44]) by qmta14.emeryville.ca.mail.comcast.net with comcast id LhK91g0080x6nqcAEhNr8Q; Fri, 18 Mar 2011 17:22:51 +0000 Received: from koitsu.dyndns.org ([76.102.12.206]) by omta12.emeryville.ca.mail.comcast.net with comcast id LhNk1g00h4SkFJc8YhNld4; Fri, 18 Mar 2011 17:22:49 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 3E9169B429; Fri, 18 Mar 2011 10:22:43 -0700 (PDT) Date: Fri, 18 Mar 2011 10:22:43 -0700 From: Jeremy Chadwick To: Steve Polyack , freebsd-stable , "Sergey V. Dyatko" Message-ID: <20110318172243.GA37430@icarus.home.lan> References: <20110317142559.GA1576@gmail.com> <4D823020.1020202@comcast.net> <20110318164549.GA1335@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110318164549.GA1335@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Subject: Re: FBSD 8.2R does not probe sound card X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2011 17:22:52 -0000 On Fri, Mar 18, 2011 at 11:45:49PM +0700, Gua Chung Lim wrote: > Thank you for your kind responses. > Though I don't understand much what you said, > I shall give you further info. > > > pcm1 device is the HDMI audio output on your graphics card. My only > > suggestion here is to play with the sysctl hw.snd.default_unit: > # tail -n 1 /etc/sysctl.conf > hw.snd.default_unit=1 > (I left /boot/loader.conf untouched.) > # shutdown -r now > > after reboot > # kldload snd_driver > # sysctl -d hw.snd.default_unit > hw.snd.default_unit: default sound device > # sysctl hw.snd.default_unit > hw.snd.default_unit: 0 > > The speakers are still quiet. > I wonder why it is still 0, even if /etc/sysctl.conf set it to 1. Because you're not thinking about the order of operation correctly. 1) The system boots up, with no knowledge of snd_driver 2) It tries to set hw.snd.default_unit=1, which fails (changes nothing) because that's a sysctl registered with snd_driver which isn't loaded yet 3) You manually "kldload snd_driver", which pulls in the driver-level sysctl default of 0 for hw.snd.default_unit. 4) You then wonder why hw.snd.default_unit isn't 1. -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP 4BD6C0CB |