From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 7 20:25:35 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 2DDDD16A46C for ; Mon, 7 Jan 2008 20:25:35 +0000 (UTC) (envelope-from j.witteveen@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.234]) by mx1.freebsd.org (Postfix) with ESMTP id 8B55E13C465 for ; Mon, 7 Jan 2008 20:25:34 +0000 (UTC) (envelope-from j.witteveen@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so2582202wxd.7 for ; Mon, 07 Jan 2008 12:25:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=TEg2cAkT5NxCV+WRGn6B2Q3tPry+Nv2DjRNUCs7+b9c=; b=JZ2hzU4TsVRxAF1BhjH2WUwHZbi+UMRhe43Jt2gaHJawz3msGi2b0V6A7Von75oAaoXeKJLffXmZL/2qKrDcJHkYs0i1GnfDNJ/eY4DZ4iKIKiMpiPv0fhMSmCcrLf/nbuKQFUUMaipZMEWNdzFudJiKms5q3OhWL5kHakXpoH0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hBkByajlrbBJEmHsFNg1wmFa//EQzkGBVpyDfQQPNdQaUxF2aTunELDwV4O82RZBqQv2r1ts0weuC85ReoMx62c1bWQl7MWhP776ri/+VqYAZ/Nc38eVR19g8/njCI8SmYZeV/HNFEeVynsiqZKbfdwrH9F/PqsskiipoRB3Xx8= Received: by 10.142.226.2 with SMTP id y2mr6337973wfg.137.1199737533144; Mon, 07 Jan 2008 12:25:33 -0800 (PST) Received: by 10.143.44.11 with HTTP; Mon, 7 Jan 2008 12:25:33 -0800 (PST) Message-ID: <3993a4980801071225qf94ce5je247904a33a721a4@mail.gmail.com> Date: Mon, 7 Jan 2008 21:25:33 +0100 From: "Jouke Witteveen" To: "John Baldwin" In-Reply-To: <200801071402.31003.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3993a4980801020535h4ef4d3ebr461892baa4e39082@mail.gmail.com> <200801070130.33106.jhb@freebsd.org> <3993a4980801070532j34b17062t34aae6f6e117fd3c@mail.gmail.com> <200801071402.31003.jhb@freebsd.org> Cc: freebsd-multimedia@freebsd.org, freebsd-stable@freebsd.org 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:25:35 -0000 On Jan 7, 2008 8:02 PM, John Baldwin wrote: > > 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 > My sincere apologies. The thread had evolved a bit further on the multimedia list. That is where I stated I initialy did not use the mixer script. As to the initial problem: forgive me being extremely stubborn. In my ignorance I though not having any references to the mixer script in my rc.conf meant I was not using it. I looked over a line in the defaults though... Setting the suggested 'mixer_enable="NO"' in /etc/rc.conf *does* make the hints work. Thanks to everybody, - Jouke