From owner-freebsd-multimedia@FreeBSD.ORG Fri Mar 16 15:08:17 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 8CA0716A404 for ; Fri, 16 Mar 2007 15:08:17 +0000 (UTC) (envelope-from karol.kwiat@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id 1066C13C484 for ; Fri, 16 Mar 2007 15:08:16 +0000 (UTC) (envelope-from karol.kwiat@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so704739ugh for ; Fri, 16 Mar 2007 08:08:16 -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:cc:subject:references:in-reply-to:x-enigmail-version:openpgp:content-type; b=QAKRAnIo9UMMRmOho/Y7iDdtlKyu7QBrVDuFAMcBlQ0Vb9AcjHBUhwkSYccWvlVPJxtkIawLfvxQGSoEKLNgeuw0nLeXCHfjdAIrI1pSJo0Dx1oppkSsQsSzBXVhlP5EBwSf5PaDNvKU/4kdSKX3ZRFhTeHA5UjyO7sYfK9dSq8= 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:cc:subject:references:in-reply-to:x-enigmail-version:openpgp:content-type; b=jzQ1iTIUt9LdnJ66rtJgDtm4HykPtwln97SQASw2mRdJ4J0wIAHqMh8DQEEDrz8JXkgOGRlDbboiGyI0loW5+m8H+yqpZxjbGx0WRvLXUT9Dtn1auN/QoG0JQJPpK4ayugEYzKGOJu2N5yt4Ytml0HpCoxMVCRZ3WuQAp80TYmE= Received: by 10.66.255.7 with SMTP id c7mr4718379ugi.1174057695795; Fri, 16 Mar 2007 08:08:15 -0700 (PDT) Received: from persephone.orchid.homeunix.org ( [84.10.174.25]) by mx.google.com with ESMTP id y7sm3892645ugc.2007.03.16.08.08.15; Fri, 16 Mar 2007 08:08:15 -0700 (PDT) Message-ID: <45FAB2D6.80008@gmail.com> Date: Fri, 16 Mar 2007 16:08:06 +0100 From: Karol Kwiatkowski User-Agent: Thunderbird 2.0b2 (X11/20070306) MIME-Version: 1.0 To: Yuriy Tsibizov 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/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig6EC981C0EB4C8C0D1A136F36" Cc: freebsd-multimedia@freebsd.org 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:08:17 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6EC981C0EB4C8C0D1A136F36 Content-Type: multipart/mixed; boundary="------------080005080106080403080404" This is a multi-part message in MIME format. --------------080005080106080403080404 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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=20 > (http://fxr.watson.org/fxr/source/dev/sound/pci/emu10kx.c#L2510) > to=20 >=20 > emumix_set_mode(sc, MODE_ANALOG); >=20 > 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 --=20 Karol Kwiatkowski OpenPGP 0x06E09309 --------------080005080106080403080404 Content-Type: text/plain; name="emu10kx.c.diff" Content-Transfer-Encoding: quoted-printable 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 =3D MODE_ANALOG; } - emumix_set_mode(sc, def_mode); + emumix_set_mode(sc, MODE_ANALOG); =20 if (bootverbose) { tmp =3D emu_rd(sc, HCFG, 4); --------------080005080106080403080404-- --------------enig6EC981C0EB4C8C0D1A136F36 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF+rLeezeoPAwGIYsRCKUpAJ9ZFDIg5wmLACsgqFR3XwB8rqBD8ACghnb+ 5cDk9hAru4lfFRPH7f1gI8w= =vQYB -----END PGP SIGNATURE----- --------------enig6EC981C0EB4C8C0D1A136F36--