From owner-freebsd-multimedia@FreeBSD.ORG Wed Dec 2 10:05:55 2009 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 A400B106566B for ; Wed, 2 Dec 2009 10:05:55 +0000 (UTC) (envelope-from lists@yamagi.org) Received: from mail.yamagi.org (yamagi.org [88.198.78.242]) by mx1.freebsd.org (Postfix) with ESMTP id 63A7C8FC14 for ; Wed, 2 Dec 2009 10:05:55 +0000 (UTC) Received: from screw (f054141089.adsl.alicedsl.de [78.54.141.89]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.yamagi.org (Postfix) with ESMTP id 6002B10846BC for ; Wed, 2 Dec 2009 10:50:52 +0100 (CET) Date: Wed, 2 Dec 2009 10:50:46 +0100 (CET) From: Yamagi Burmeister X-X-Sender: yamagi@screw.home.yamagi.org To: freebsd-multimedia@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="3200074082-258591794-1259747452=:83604" Subject: snd_envy24ht regression in 8.0 (patch included) 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: Wed, 02 Dec 2009 10:05:55 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --3200074082-258591794-1259747452=:83604 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Hello, I've got a Audiotrak Prodigy HD2 soundcard, based upon the VIA Envy24HT-s chipset. Dmesg output is: pcm1: port 0x3080-0x309f,0x3000-0x307f irq 28 at device 4.0 on pci18 pcm1: [GIANT-LOCKED] pcm1: [ITHREAD] pcm1: system configuration SubVendorID: 0x3137, SubDeviceID: 0x4154 XIN2 Clock Source: 49.152MHz(192kHz*256) MPU-401 UART(s) #: 1 ADC #: 1 and SPDIF receiver connected DAC #: 1 Multi-track converter type: I2S(192KHz support, 24bit resolution, ID#0x0) S/PDIF(IN/OUT): 1/1 ID# 0x00 GPIO(mask/dir/state): 0xfff8ff/0xdfffff/0x200700 /dev/sndstat shows: root@screw:pts/8 ~> cat /dev/sndstat FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) Installed devices: pcm0: at io 0x1800, 0x1400 irq 22 bufsz 16384 kld snd_ich [MPSAFE] (1p:1v/1r:1v channels duplex) pcm1: at io 0x3080:32,0x3000:128 irq 28 [GIANT] (1p:1v/5r:1v channels duplex default) In FreeBSD 7.2 it worked just like a charm but after upgrading to 8.0 the left stereo channel is only half as loud as the right one. It can be reproduced with either speakers and headphones. I tracked it down to a change in revision 188480 of spicds.c, the change "fix: stupid bug with volume control for AK4396" breaks volume control for me. The attached patch fixes the problem by reverting the specific change but I guess it'll break some other cards again. An other possible work around is to double the volume of the left channel via the mixer. Ciao, Yamagi -- Homepage: www.yamagi.org Jabber: yamagi@yamagi.org GnuPG/GPG: 0xEFBCCBCB --3200074082-258591794-1259747452=:83604 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=spicds_ak4396.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=spicds_ak4396.patch LS0tIHNwaWNkcy5jX2FsdAkyMDA5LTEyLTAyIDA5OjU5OjM4LjAwMDAwMDAw MCArMDEwMA0KKysrIHNwaWNkcy5jCTIwMDktMTItMDIgMTA6MDY6NDAuMDAw MDAwMDAwICswMTAwDQpAQCAtMzAwLDggKzMwMCw3IEBADQogCQljYXNlIFNQ SUNEU19UWVBFX1dNODc3MDoNCiAgICAgICAgICAgICAgICAgICAgICAgICBy aWdodCA9IHJpZ2h0ICsgMjc7DQogCQkJYnJlYWs7DQotCQljYXNlIFNQSUNE U19UWVBFX0FLNDM4MTogDQotCQljYXNlIFNQSUNEU19UWVBFX0FLNDM5NjoN CisJCWNhc2UgU1BJQ0RTX1RZUEVfQUs0MzgxIHx8IFNQSUNEU19UWVBFX0FL NDM5NjoNCiAJCQlyaWdodCA9IHJpZ2h0ICogMjU1IC8gMTAwOw0KIAkJCWJy ZWFrOw0KICAgICAgICAgICAgICAgICBkZWZhdWx0OiAgIA0K --3200074082-258591794-1259747452=:83604--