From owner-freebsd-multimedia@FreeBSD.ORG Fri Mar 16 15:15:27 2007 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 67CCB16A402 for ; Fri, 16 Mar 2007 15:15:27 +0000 (UTC) (envelope-from karol.kwiat@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.228]) by mx1.freebsd.org (Postfix) with ESMTP id 2232213C469 for ; Fri, 16 Mar 2007 15:15:27 +0000 (UTC) (envelope-from karol.kwiat@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so559608wxc for ; Fri, 16 Mar 2007 08:15:26 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:openpgp:content-type; b=M7cvfL4nSNDjLHvxVrLMS1P8pT5TRZTh/mXK+hRjKOviA1j4Buz1h6jWBXWp7b7Kd3Rni6q2C1hJujFXKsbPyJven51pejNslXVDtpkyOIZRg/ZT1RRfpkis3zPGlQ4LBBWzs2ZI6zLmwg0cdA6bQnssxSL40fBuunPDCcfoPkU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:openpgp:content-type; b=RoNz8Id7zaV4m+YAIO5NrxD51NH5Y0Eh+s/B8/sYMtk2+nKl1YI2RHuwiZlrLzlwGzFDhPjNryIyt71XrCyZS+GCFT4ZgdMuIaX9KYwazyhbOT1pJ3YCvz9Cykav1oVer5uy9LzbobWSiV4LG6krseGqoupZe8HByBjP3QuSkig= Received: by 10.90.105.19 with SMTP id d19mr1851161agc.1174058126685; Fri, 16 Mar 2007 08:15:26 -0700 (PDT) Received: from persephone.orchid.homeunix.org ( [84.10.174.25]) by mx.google.com with ESMTP id o45sm4669366nfa.2007.03.16.08.15.24; Fri, 16 Mar 2007 08:15:25 -0700 (PDT) Message-ID: <45FAB48C.5060604@gmail.com> Date: Fri, 16 Mar 2007 16:15:24 +0100 From: Karol Kwiatkowski User-Agent: Thunderbird 2.0b2 (X11/20070306) MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org References: <78664C02FF341B4FAC63E561846E3BCC079B4E@ex.hhp.local> In-Reply-To: <78664C02FF341B4FAC63E561846E3BCC079B4E@ex.hhp.local> X-Enigmail-Version: 0.94.3.0 OpenPGP: id=06E09309; url=http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc Content-Type: multipart/mixed; boundary="------------020607030009060808090808" Subject: Re: How to switch Audigy in analog mode (emu10kx from CURRENT)? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: karol.kwiat@gmail.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 15:15:27 -0000 This is a multi-part message in MIME format. --------------020607030009060808090808 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit [ resending to list, it seems mailman doesn't like signed emails with attachments ] Yuriy Tsibizov wrote: >> One last question - is there an easy way to switch the digital output >> completely off? I don't mind patching the sources, just I don't know >> what to look for. > You can try to change line 2510 of emu10kx.c > (http://fxr.watson.org/fxr/source/dev/sound/pci/emu10kx.c#L2510) > to > > emumix_set_mode(sc, MODE_ANALOG); > > You should get silence on center/sub instead of digital 'noise'. That works as expected, excellent! Attached a patch against emu10kx.c form CURRENT: emu10kx.c,v 1.9 2007/02/23 19:41:16 ariff Exp $ for archives, in case someone else was interested in this workaround. Thank you for your support, Karol -- Karol Kwiatkowski OpenPGP 0x06E09309 --------------020607030009060808090808 Content-Type: text/plain; name="emu10kx.c.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="emu10kx.c.diff" --- sys/dev/sound/pci/emu10kx.c.orig Fri Feb 23 20:41:16 2007 +++ sys/dev/sound/pci/emu10kx.c Fri Mar 16 15:38:04 2007 @@ -2507,7 +2507,7 @@ device_printf(sc->dev, "Audigy card initialized in analog mode.\n"); def_mode = MODE_ANALOG; } - emumix_set_mode(sc, def_mode); + emumix_set_mode(sc, MODE_ANALOG); if (bootverbose) { tmp = emu_rd(sc, HCFG, 4); --------------020607030009060808090808--