kern/63771: Line input level of pcm(4)'s mixer should be zero by
default
Eugene Grosbein
eugen at grosbein.pp.ru
Thu Mar 4 11:00:30 PST 2004
>Number: 63771
>Category: kern
>Synopsis: Line input level of pcm(4)'s mixer should be zero by default
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Mar 04 11:00:29 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Eugene Grosbein
>Release: FreeBSD 4.9-STABLE i386
>Organization:
Svyaz Service JSC
>Environment:
System: FreeBSD grosbein.pp.ru 4.9-STABLE FreeBSD 4.9-STABLE #2: Fri Mar 5 01:39:32 KRAT 2004 eu at grosbein.pp.ru:/tmp/obj/usr/local/src/sys/DADV i386
Yamaha OPL3-SA2 sound card
>Description:
It is convinient to have a source of sound like TV set
permanently connected to the line input of sound card.
Unfortunately, device pcm sets level 75 for line input by default,
and some cards will divert line input to speakers just in a moment
of card initialization (read: even before single user).
That is inconvinient in some cases or even unacceptable as there is
no way for silent startup in such configuration. The solution is
to make zero default for line input level.
OTOH, it's easy to turn the level back to non-zero value
using /usr/local/etc/rc.d/ script, if needed.
>How-To-Repeat:
Connect audio out of TV set to audio in of Yamaha OPL3-SA2.
Connect power speakers to it.
Turn TV set on, boot FreeBSD and try to make it silent at startup.
>Fix:
Apply this trivial patch.
--- sys/dev/sound/pcm/mixer.c.orig Fri Mar 5 01:38:59 2004
+++ sys/dev/sound/pcm/mixer.c Fri Mar 5 01:39:09 2004
@@ -57,7 +57,7 @@
[SOUND_MIXER_SYNTH] = 75,
[SOUND_MIXER_PCM] = 75,
[SOUND_MIXER_SPEAKER] = 75,
- [SOUND_MIXER_LINE] = 75,
+ [SOUND_MIXER_LINE] = 0,
[SOUND_MIXER_MIC] = 0,
[SOUND_MIXER_CD] = 75,
[SOUND_MIXER_LINE1] = 75,
Eugene Grosbein
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list