From owner-freebsd-multimedia@FreeBSD.ORG Sat Dec 5 10:04:09 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 CD8C2106566C for ; Sat, 5 Dec 2009 10:04:09 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 201508FC0A for ; Sat, 5 Dec 2009 10:04:08 +0000 (UTC) Received: (qmail invoked by alias); 05 Dec 2009 10:04:07 -0000 Received: from 85-127-77-188.dynamic.xdsl-line.inode.at (EHLO walrus.pepperland) [85.127.77.188] by mail.gmx.net (mp042) with SMTP; 05 Dec 2009 11:04:07 +0100 X-Authenticated: #16703784 X-Provags-ID: V01U2FsdGVkX18UV3xZIgwU98/jX//HCIS+TUHAu5SG3SK2/Ur9WE GHyk40+2fUs6er From: Stefan Ehmann To: freebsd-multimedia@freebsd.org Date: Sat, 5 Dec 2009 11:04:05 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-RELEASE; KDE/4.3.4; i386; ; ) References: <4B19A2B6.80803@bahnhofbredband.se> In-Reply-To: <4B19A2B6.80803@bahnhofbredband.se> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <200912051104.05942.shoesoft@gmx.net> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.58 Cc: Subject: Re: 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: Sat, 05 Dec 2009 10:04:09 -0000 On Saturday 05 December 2009 01:00:54 Carl Johan Gustavsson wrote: > Yamagi Burmeister wrote: > > Hello, > > I've got a Audiotrak Prodigy HD2 soundcard, based upon the VIA > > Envy24HT-s chipset. Dmesg output is: ... > > > > 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. > Hi, > > That patch was partly correct but it did only fix the problem on the right > channel, the left one exhibits a similar error. Logical operators in case > labels does not work well in C, or at least not as the original writer > expected :) > > Please revert your changes and try the attached patch. The patch fixes the balance problems on my envy24 card that had similar problems. -- Stefan