From owner-freebsd-questions@FreeBSD.ORG Wed Dec 30 20:52:41 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62214106568B for ; Wed, 30 Dec 2009 20:52:41 +0000 (UTC) (envelope-from macerl@telkomsa.net) Received: from rrba-ip-smtp-1-2.saix.net (rrba-ip-smtp-1-2.saix.net [196.25.240.239]) by mx1.freebsd.org (Postfix) with ESMTP id F0DC38FC1F for ; Wed, 30 Dec 2009 20:52:40 +0000 (UTC) Received: from belenos.localnet (dsl-244-252-189.telkomadsl.co.za [41.244.252.189]) by rrba-ip-smtp-1-2.saix.net (Postfix) with ESMTP id DBDBFF2C; Wed, 30 Dec 2009 22:52:36 +0200 (SAST) From: "Richard L. Mace" To: Mark Moellering Date: Wed, 30 Dec 2009 22:51:38 +0200 User-Agent: KMail/1.12.1 (FreeBSD/8.0-RELEASE; KDE/4.3.1; amd64; ; ) References: <200912301645.50105.macerl@telkomsa.net> <200912301723.27938.pieter@service2media.com> <4B3B818E.3070909@msen.com> In-Reply-To: <4B3B818E.3070909@msen.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200912302251.38874.macerl@telkomsa.net> Cc: Pieter de Goeje , freebsd-questions@freebsd.org, Chuck Robey Subject: Re: snd_hda peculiarities [SOLVED] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Dec 2009 20:52:41 -0000 On Wednesday 30 December 2009 18:36:30 Mark Moellering wrote: > Pieter de Goeje wrote: > > On Wednesday 30 December 2009 15:45:50 Richard L. Mace wrote: > >> I recently installed FreeBSD 8.0 (amd64) on my laptop (HP 8510w) and > >> most things are working. However, a minor annoyance is that I only get > >> sound if I manually load snd_hda via: > >> > >> # kldload snd_hda > >> > >> i.e., after booting. If I place the following in /boot/loader.conf > >> > >> snd_hda_load="YES" > >> > >> I get no sound, even though the driver seems to load and cat > >> /dev/sndstat gives > > > > Try setting hw.snd.default_unit=1 in sysctl.conf. Most likely the order > > of the devices has changed. > > > >> ------------------------------------------------------------------------ > >>--- ------------------------------------------- FreeBSD Audio Driver > >> (newpcm: 64bit 2009061500/amd64) > >> Installed devices: > >> pcm0: at cad 0 nid 1 on > >> hdac0 kld snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex default) > >> pcm1: at cad 0 nid 1 on > >> hdac0 kld snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex) > >> ------------------------------------------------------------------------ > >>--- --------------------------------------------- > > > > This looks like the output from the working configuration. Note that the > > first device is the analog output, the second is a digital output. When > > you load snd_hda using loader.conf, the order is likely different on your > > machine and the digital output is listed first. hw.snd.default_unit=1 > > would then direct the sound to the proper (analog) output. > > > > - Pieter > > _______________________________________________ > > 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" > > Richard, > I am sure that this is what I did to my machine to get snd_hda to > work. > . > Mark > Thanks to all for your valuable suggestions. It turns out that the problem was much simpler than I thought. When I kldload snd_hda I get two panes in Kmix, each called "OSS Audio Mixer". One contains a whole bunch of channels, the other only two: Front and PCM. It turns out that the simpler pane (front and pcm) controls the volume when you issue a: # kldload snd_hda and this was naturally the pane that I was paying attention to, even when loading via /boot/loader.conf. When all suggestions failed, I turned my attention to the other pane and noticed that OGain was muted. I unmuted the OGain channel and now I have sound even when I load snd_hda via /boot/loader.conf (with hw.snd.default_unit=0, i.e. its default setting). However, in contrast to what happens when I do a kldload, when loading via /boot/loader.conf the other more detailed pane (containing the OGain control) now controls the volume. Thanks again to all and my apologies for not looking for the simplest solution first. -Richard