From owner-freebsd-multimedia@FreeBSD.ORG Mon Sep 22 18:42:40 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65B591065672 for ; Mon, 22 Sep 2008 18:42:40 +0000 (UTC) (envelope-from piernik@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id E39A28FC08 for ; Mon, 22 Sep 2008 18:42:39 +0000 (UTC) (envelope-from piernik@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so1388438uge.39 for ; Mon, 22 Sep 2008 11:42:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:x-mailer:x-face:mime-version:content-type; bh=g/jkJe/kt4lBbGFoLjkHVzXtQa7EpIMLeRq9iMU2MYw=; b=fyoCKdj7AhAmiioHJOStH8EKyd8R4FfbmEjar6JMWxwPL1blZvBYGT192caWzgYWYb SUP+GRnHki2i91UlNVb26g7O8SBDSS3FvHliQqBeLnD+/C6RW1RuWMQpOC8NXawKdBFm DwPVEcaWCJ3nFSyVNGEe1bEHKV3hlrxqrFiVE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:x-face:mime-version :content-type; b=C/q0t7NxS+veWIL98JUw3kUyrTca0Zvwm6/qq1eQtj63NIKhuo1lIJJb3kAZULN6NM +Vk2T2Qd3Kn6SruoySVrhVVEfowHfiy720VBKAqSlC6BAUCeWzILUS4MxCwRTnfXHz2T /yDauHa492EACyAErB3oCF2QJ1mYt7/20ZH80= Received: by 10.67.29.4 with SMTP id g4mr3966573ugj.73.1222107389013; Mon, 22 Sep 2008 11:16:29 -0700 (PDT) Received: from mobil.site ( [87.205.75.117]) by mx.google.com with ESMTPS id x26sm241034ugc.8.2008.09.22.11.16.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 22 Sep 2008 11:16:28 -0700 (PDT) Date: Mon, 22 Sep 2008 20:15:28 +0200 From: Krzysztof Kotlenga To: freebsd-multimedia@freebsd.org Message-ID: <20080922201528.019f43a4@mobil.site> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.9; i586-suse-linux-gnu) X-Face: U{.sZrXl+; -boiB]N4=wPdrR|YT0!fcISDza0Y}=n*z')0S{iZWjV!F"n+n2Rpp8jcp53&OWJgn?AJcD2 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/CyCn1yh1=Fmzym9gzAvLO+T" Subject: snd_emu10kx - center and subwoofer output X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2008 18:42:40 -0000 --MP_/CyCn1yh1=Fmzym9gzAvLO+T Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! While trying to setup multichannel output using SB Audigy (CA100), PulseAudio and snd_emu10kx I came into problem with sub/center outputs being mute. After some digging, I've found that the driver code enabling them is disabled and enabling it (see attachment) solves my issue. Another problem is that I'm using analog outputs and until I set dev.emu10kx.0._digital=0 sysctl, analog/digital output produces only digital noise. Hearing that noise every time you turn on your PC, after the module loads and before sysctl runs can by quite annoying. I think both these issues were mentioned earlier on this list but didn't get enough attention. This being said, huge thanks to Yuriy for making this possible! -- xmpp:pocketer@jabber.gda.pl --MP_/CyCn1yh1=Fmzym9gzAvLO+T Content-Type: text/x-patch; name=emu10kx.diff Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=emu10kx.diff --- sys/dev/sound/pci/emu10kx.c.orig 2008-09-18 20:13:11.000000000 +0200 +++ sys/dev/sound/pci/emu10kx.c 2008-09-18 20:49:31.000000000 +0200 @@ -2036,22 +2036,22 @@ /* fx4 (pcm2) to center */ EFX_CACHE(C_CENTER); EFX_ROUTE(NULL, FX(4), M_FX4_CENTER, C_CENTER, 100); EFX_OUTPUT(NULL, C_CENTER, M_MASTER_CENTER, A_OUT_D_CENTER, 100); -#if 0 +#if 1 /* * XXX in digital mode (default) this should be muted * because this output is shared with digital out */ EFX_OUTPUTD(C_CENTER, M_MASTER_CENTER, A_OUT_A_CENTER); #endif /* fx5 (pcm3) to sub */ EFX_CACHE(C_SUB); EFX_ROUTE(NULL, FX(5), M_FX5_SUBWOOFER, C_SUB, 100); EFX_OUTPUT(NULL, C_SUB, M_MASTER_SUBWOOFER, A_OUT_D_SUB, 100); -#if 0 +#if 1 /* * XXX in digital mode (default) this should be muted * because this output is shared with digital out */ EFX_OUTPUTD(C_SUB, M_MASTER_SUBWOOFER, A_OUT_A_SUB); --MP_/CyCn1yh1=Fmzym9gzAvLO+T--