From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 7 20:23:15 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44F3516A419; Mon, 7 Jan 2008 20:23:15 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id BE4D613C4D3; Mon, 7 Jan 2008 20:23:14 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8q) with ESMTP id 227632894-1834499 for multiple; Mon, 07 Jan 2008 15:05:25 -0500 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id m07K6pQu073323; Mon, 7 Jan 2008 15:06:59 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-stable@freebsd.org Date: Mon, 7 Jan 2008 14:02:30 -0500 User-Agent: KMail/1.9.6 References: <3993a4980801020535h4ef4d3ebr461892baa4e39082@mail.gmail.com> <200801070130.33106.jhb@freebsd.org> <3993a4980801070532j34b17062t34aae6f6e117fd3c@mail.gmail.com> In-Reply-To: <3993a4980801070532j34b17062t34aae6f6e117fd3c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801071402.31003.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 07 Jan 2008 15:06:59 -0500 (EST) X-Virus-Scanned: ClamAV 0.91.2/5420/Mon Jan 7 09:34:42 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: freebsd-multimedia@freebsd.org, Jouke Witteveen Subject: Re: Mixer default values not restored 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: Mon, 07 Jan 2008 20:23:15 -0000 On Monday 07 January 2008 08:32:49 am Jouke Witteveen wrote: > On Jan 7, 2008 7:30 AM, John Baldwin wrote: > > > > On Wednesday 02 January 2008 08:35:40 am Jouke Witteveen wrote: > > > Hello, > > > > > > I'm running FreeBSD 7.0 RC1 with the following in my kernel configuration: > > > --- > > > device sound > > > device snd_emu10kx > > > --- > > > My soundcard is a Soundblaster Live! > > > > > > In trying to make the rear-channel volume default to "100" I added the > > > following to my /boot/device.hints: > > > --- > > > hint.pcm.1.vol="100" > > > hint.pcm.1.pcm="100" > > > --- > > > This method is suggested on page 164 (section 7.2.4) of the Handbook. > > > > > > The problem is that these mixer levels do not apply: > > > --- > > > $ mixer -f /dev/mixer1 > > > Mixer vol is currently set to 75:75 > > > Mixer pcm is currently set to 75:75 > > > --- > > > There is no problem however in manualy settig these values. > > > > > > Any help is welcome. My machine can - may it be needed - be used as a testbase. > > > > Hmm, probably /etc/rc.d/mixer is overriding the tunables as it is restoring the settings > > to those from the previous boot. You can disable the mixer script perhaps. > > > > -- > > John Baldwin > > > > Like I said; initialy I had the script disabled. > Can someone please test de kernel tunables (hints) on his/her machine? Err, I don't see anywhere in your message where you disabled it. You would need to add 'mixer_enable="NO"' to /etc/rc.conf. The hints are honored in the mixer_init() function in sys/dev/sound/pcm/mixer.c here: for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) { v = snd_mixerdefaults[i]; if (resource_int_value(device_get_name(dev), device_get_unit(dev), snd_mixernames[i], &val) == 0) { if (val >= 0 && val <= 100) { v = (u_int16_t) val; } } mixer_set(m, i, v | (v << 8)); } -- John Baldwin