From: Takashi Iwai Subject: Re: Power management state flow in ALSA Date: Wed, 30 May 2007 11:55:34 +0200 Message-ID: References: <8d6898730705292322w2dbf2a2fu4761370c4cc7ea16@mail.gmail.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 mx1.suse.de (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 6E9C124418 for ; Wed, 30 May 2007 11:55:43 +0200 (CEST) In-Reply-To: <8d6898730705292322w2dbf2a2fu4761370c4cc7ea16@mail.gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Nobin Mathew Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Wed, 30 May 2007 11:52:31 +0530, Nobin Mathew wrote: > > I am having a doubt regarding ALSA power management. > > My understanding of APM suspend() is like this. > > Freeze the ALSA apps > > Call ALSA driver suspend () > > in the ALSA suspend() function it saves the current state of substream > and changes the state of substream to SUSPENDED. > > My understanding of APM resume() is like this > > Call ALSA driver resume () > > Activate the ALSA apps > > In ALSA resume function it restores the saved state of substream. > > > So my question is when ALSA app will get to know the SUSPENDED state > of substream.??? When issuing any syscalls. Then you'll get ESTRPIPE error, which indicitaes the stream is in the SUSPEND state. Takashi