From: Takashi Iwai Subject: Re: surround51 problems. (problem patch identified) Date: Mon, 10 Oct 2005 12:37:03 +0200 Message-ID: References: <4348105C.2050809@superbug.co.uk> <43481297.6080504@superbug.co.uk> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <43481297.6080504@superbug.co.uk> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: James Courtier-Dutton Cc: alsa-devel List-Id: alsa-devel@alsa-project.org At Sat, 08 Oct 2005 19:40:23 +0100, James Courtier-Dutton wrote: > > [1 ] > James Courtier-Dutton wrote: > > Hi, > > > > I did a lot of different checkouts, and it starts failing immediately > > after this patch, dated: 2nd September 2005. > > So, I conclude that this patch is to blame for the surround51 problems > > with the Audigy 2 sound card. > > > > This does not seem to effect the intel8x0 driver for surround51. > > The major difference between these two cards is that the intel8x0 takes > > the samples as 6 channels interleaved, but the emu10k1 takes the sound > > as 3 separate stereo interleaved channels. > > > > I hope this helps you fix the problem that you introduced. > > From reading the patch, it looks like you were trying to remove an > > slave buffer when it is not needed, but you seem to assume that it is > > never needed, instead of actually doing a runtime check before disabling > > it. Thanks for spotting out. The point of my patch was not the optimization but the bugfix for surround outputs using 32->16bit conversion. With the patch, the local buffer _is_ allocated which wasn't before. So the problem looks like multi plugin or the combination of plug and multi plugins... > See attached patch that I use to reverse out these changes, in order to > get the current alsa-lib cvs working with the emu10k1. The relevant change is only to pcm_generic.c and pcm_plug.c. Others should have play no role. If you don't access with plug layer, even the latter has no influence. But I can't tell you exactly unless I know which configuration you used. Developers are not always good bug reporters ;) Takashi ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl