From: Takashi Iwai Subject: Re: [RFC/PATCH] Stop Apple i2s DMA gracefully Date: Tue, 28 Nov 2006 13:03:20 +0100 Message-ID: References: <17732.11228.441627.300383@cargo.ozlabs.ibm.com> <1162456168.3241.2.camel@ux156> <17738.26872.275355.217147@cargo.ozlabs.ibm.com> <1162508394.3381.4.camel@johannes.berg> <17743.4433.435455.686127@cargo.ozlabs.ibm.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id D25B32EC for ; Tue, 28 Nov 2006 13:03:38 +0100 (MET) In-Reply-To: <17743.4433.435455.686127@cargo.ozlabs.ibm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Paul Mackerras Cc: Johannes Berg , alsa-devel@alsa-project.org, benjamin@sipsolutions.net List-Id: alsa-devel@alsa-project.org Hi Paul, any progress about the patch since then? Or did I overlook? thanks, Takashi At Mon, 6 Nov 2006 21:41:21 +1100, Paul Mackerras wrote: > > Takashi Iwai writes: > > > The trigger callback cannot sleep in design. It's always atomic. > > > > Usually, the driver calls snd_pcm_suspend_all() in suspend callback, > > which triggers with SNDRV_PCM_TRIGGER_SUSPEND. In your case, this > > should terminate the DMA while SNDRV_PCM_TRIGGER_STOP continues the > > DMA. Or, put a sync call after snd_pcm_suspend_all() in the suspend > > callback. > > OK, this sounds like the suspend trigger should just abort the DMA, on > the basis that the hardware will get reset in the suspend/resume > process and so there will be no bytes queued up to cause trouble > later. I'll whip up a patch. > > Paul. > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV