Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2008 01:46:39 +0100
From:      "Jouke Witteveen" <j.witteveen@gmail.com>
To:        rick-freebsd@kiwi-computer.com
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: Mixer default values not restored
Message-ID:  <3993a4980801031646rc5e0dd6t8bd040879bc29c8@mail.gmail.com>
In-Reply-To: <20080103192128.GA90170@keira.kiwi-computer.com>
References:  <3993a4980801020535h4ef4d3ebr461892baa4e39082@mail.gmail.com> <200801031837.m03IbBrd005387@fire.js.berklix.net> <20080103192128.GA90170@keira.kiwi-computer.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 3, 2008 8:21 PM, Rick C. Petty <rick-freebsd@kiwi-computer.com> wrote:
> "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
> > ---
>
> My guess is that the kernel sets those values while booting, but when
> coming up multi-user, /etc/rc.d/mixer tries to reset them to the values at
> the last shutdown time.  Why don't you just add an rc.d script which fires
> after mixer (by using a "# REQUIRE: mixer" line)??
>
> -- Rick C. Petty
>

The mixer script was not in use. I now use it ("mixer_enable="YES" in
rc.conf; thanks to a personal reply from John Nielsen) and it solves
my initial problem.
My guess is that either the hint does only work when pcm is compiled
as a module, or support for it is dropped. In any case I think the
Handbook should be updated.

- Jouke



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3993a4980801031646rc5e0dd6t8bd040879bc29c8>