From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrian McMenamin Subject: Re: [Alsa-devel] Re: Patch for AICA sound support on SEGA Dreamcast Date: Mon, 03 Apr 2006 23:36:02 +0100 Message-ID: <1144103762.11511.55.camel@localhost.localdomain> References: <1144075522.11511.20.camel@localhost.localdomain> <1144086510.11511.46.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linuxsh-dev-admin@lists.sourceforge.net Errors-To: linuxsh-dev-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Takashi Iwai , Paul Mundt Cc: Alsa-devel , linux-sh , LKML List-Id: alsa-devel@alsa-project.org On Mon, 2006-04-03 at 20:29 +0200, Takashi Iwai wrote: > > Anyway, you should use dma_wait_for_completion() instead of your > home-made one. > The dma_wait_for_completion is broken for g2 dma afaics. Paul - would you concur? (Unfortunately the dma_residue register in g2 does not stick at 0 when there is no residue but returns to the size of the completed dma transfer. Therefore I can really see no alternative but to writing my own unless Paul has a better idea.) ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751028AbWDCWgJ (ORCPT ); Mon, 3 Apr 2006 18:36:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751047AbWDCWgJ (ORCPT ); Mon, 3 Apr 2006 18:36:09 -0400 Received: from sc-outsmtp2.homechoice.co.uk ([81.1.65.36]:24593 "HELO sc-outsmtp2.homechoice.co.uk") by vger.kernel.org with SMTP id S1751028AbWDCWgI (ORCPT ); Mon, 3 Apr 2006 18:36:08 -0400 Subject: Re: [Alsa-devel] Re: Patch for AICA sound support on SEGA Dreamcast From: Adrian McMenamin To: Takashi Iwai , Paul Mundt Cc: Alsa-devel , linux-sh , LKML In-Reply-To: References: <1144075522.11511.20.camel@localhost.localdomain> <1144086510.11511.46.camel@localhost.localdomain> Content-Type: text/plain Date: Mon, 03 Apr 2006 23:36:02 +0100 Message-Id: <1144103762.11511.55.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2006-04-03 at 20:29 +0200, Takashi Iwai wrote: > > Anyway, you should use dma_wait_for_completion() instead of your > home-made one. > The dma_wait_for_completion is broken for g2 dma afaics. Paul - would you concur? (Unfortunately the dma_residue register in g2 does not stick at 0 when there is no residue but returns to the size of the completed dma transfer. Therefore I can really see no alternative but to writing my own unless Paul has a better idea.)