From owner-freebsd-bugs@FreeBSD.ORG Thu Mar 4 11:00:30 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E5D416A4CF for ; Thu, 4 Mar 2004 11:00:30 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E27643D39 for ; Thu, 4 Mar 2004 11:00:30 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i24J0Tbv044018 for ; Thu, 4 Mar 2004 11:00:29 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i24J0T9R044017; Thu, 4 Mar 2004 11:00:29 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 4 Mar 2004 11:00:29 -0800 (PST) Resent-Message-Id: <200403041900.i24J0T9R044017@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eugene Grosbein Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 76FE516A4CE for ; Thu, 4 Mar 2004 10:57:09 -0800 (PST) Received: from grosbein.pp.ru (grgw.svzserv.kemerovo.su [213.184.64.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6345943D39 for ; Thu, 4 Mar 2004 10:57:08 -0800 (PST) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (eugen@localhost [127.0.0.1]) by grosbein.pp.ru (8.12.11/8.12.11) with ESMTP id i24Iv5uR000522 for ; Fri, 5 Mar 2004 01:57:05 +0700 (KRAT) (envelope-from eugen@grosbein.pp.ru) Received: (from eugen@localhost) by grosbein.pp.ru (8.12.11/8.12.11/Submit) id i24Iv5D4000521; Fri, 5 Mar 2004 01:57:05 +0700 (KRAT) (envelope-from eugen) Message-Id: <200403041857.i24Iv5D4000521@grosbein.pp.ru> Date: Fri, 5 Mar 2004 01:57:05 +0700 (KRAT) From: Eugene Grosbein To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/63771: Line input level of pcm(4)'s mixer should be zero by default X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Eugene Grosbein List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2004 19:00:30 -0000 >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@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: