From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Gerhard Pircher" Subject: Re: ALSA fixes for non-coherent archs (Re: [PATCH] Sam440ep support) Date: Wed, 14 May 2008 23:01:10 +0200 Message-ID: <20080514210110.155050@gmx.net> References: <6DA6B1DA-11B5-4B89-88AD-561B4D17B33B@kernel.crashing.org> <20080505195054.172000@gmx.net> <1210031058.21644.120.camel@pasglop> <20080506075115.269150@gmx.net> <1210063719.21644.162.camel@pasglop> <20080506091622.269180@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org Errors-To: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org To: Takashi Iwai Cc: linuxppc-dev@ozlabs.org, alsa-devel@alsa-project.org, cjg@cruxppc.org List-Id: alsa-devel@alsa-project.org -------- Original-Nachricht -------- > Datum: Wed, 14 May 2008 14:26:53 +0200 > Von: Takashi Iwai > An: "Gerhard Pircher" > CC: benh@kernel.crashing.org, galak@kernel.crashing.org, cjg@cruxppc.org,= linuxppc-dev@ozlabs.org, alsa-devel@alsa-project.org > Betreff: ALSA fixes for non-coherent archs (Re: [PATCH] Sam440ep support) > At Tue, 06 May 2008 11:16:22 +0200, > Gerhard Pircher wrote: > > = > > Naturally I can do some tests, if you or Takashi come up with a new > > patch. > = > OK, here is another patch for testing. Since I lost my old patch > somewhere (and it's not worth to dig the archive), I wrote it up > quickly from scratch. This version should cover both SG and non-SG > buffers. It's against the latest git tree. > = > The patch adds a hackish verison of dma_mmap_coherent() for some > architectures in sound/core/pcm_native.c. I'm not sure whether this > works. I just tested it on X86. It'd be appreciated if someone can > test this. > = > Also, this disables HDSPM driver for non-X86/IA64 since the driver has > own copy and silence methods that are incompatible with the new > SG-buffer data. > = > = > And, yes, I know we need to clean up huge messes in ALSA memory > handling routines. But, let's fix obvious bugs before starting a big > rewrite... Okay, it seems to work fine so far. No lock-ups or kernel oopses. Tested with kernel v2.6.26-rc2 and a Soundblaster 5.1/EMU10k1 device (which was not working with the old patch) on my non cache coherent G4 system. Thanks again! Gerhard -- = Psssst! Schon vom neuen GMX MultiMessenger geh=F6rt? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger