From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Revell Subject: Re: No snd_pcm_resume_all() ? Date: Mon, 17 Apr 2006 21:36:08 -0400 Message-ID: <1145324168.16138.126.camel@mindpipe> References: <1145321918.4705.4.camel@localhost.localdomain> <1145323208.16138.119.camel@mindpipe> <1145323654.4705.31.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from mustang.oldcity.dca.net (mustang.oldcity.dca.net [216.158.38.3]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with SMTP id A2A0C1A9 for ; Tue, 18 Apr 2006 03:36:10 +0200 (MEST) In-Reply-To: <1145323654.4705.31.camel@localhost.localdomain> 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: Benjamin Herrenschmidt Cc: alsa-devel@alsa-project.org, Takashi Iwai , Johannes Berg List-Id: alsa-devel@alsa-project.org On Tue, 2006-04-18 at 11:27 +1000, Benjamin Herrenschmidt wrote: > How are apps supposed to know about system suspend/resume ? There is > no proper way to do so that works accross architectures and > suspend/resume methods so far ... I yet have to see a single audio app > that knows about it ... (tried various KDE based things like Amarok, > mpg123, xine, ... ) They don't specifically have to know about suspend and resume - from the application point of view it just looks like an underrun - poll() or write() will return an error code so the app checks the state with snd_pcm_state() and recovers if it is SND_PCM_STATE_XRUN or SND_PCM_STATE_SUSPENDED. Are any of these native ALSA apps, or do they all go through artsd which uses the OSS emulation layer? Does it work OK with aplay? Lee ------------------------------------------------------- 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