Mixer default values not restored

Jouke Witteveen j.witteveen at gmail.com
Thu Jan 3 16:46:40 PST 2008


On Jan 3, 2008 8:21 PM, Rick C. Petty <rick-freebsd at 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


More information about the freebsd-multimedia mailing list