From: Liam Girdwood Subject: Re: Power management state flow in ALSA Date: Wed, 30 May 2007 12:10:05 +0100 Message-ID: <1180523405.29590.16.camel@a10072.wolfsonmicro.main> References: <8d6898730705292322w2dbf2a2fu4761370c4cc7ea16@mail.gmail.com> <8d6898730705300306g3f32f5e8yad6770a4eee1851a@mail.gmail.com> <8d6898730705300336l4db252e6pa4b7b257de4ed6eb@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from opensource.wolfsonmicro.com (unknown [80.75.67.54]) by alsa0.perex.cz (Postfix) with ESMTP id 3E5C02445F for ; Wed, 30 May 2007 13:10:07 +0200 (CEST) In-Reply-To: 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: Takashi Iwai Cc: alsa-devel@alsa-project.org, Nobin Mathew List-Id: alsa-devel@alsa-project.org On Wed, 2007-05-30 at 12:58 +0200, Takashi Iwai wrote: > At Wed, 30 May 2007 16:06:54 +0530, > Nobin Mathew wrote: > > > > I am writing an ASoC driver, where i can place these calls > > > > snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); > > snd_pcm_suspend_all(chip->pcm[i]); > > > > and snd_power_change_state(card, SNDRV_CTL_POWER_D0); > > > > > > In soc-core.c ? > > I suppose so. > In soc_suspend() and soc_resume(), you can get the card instance from > codec->card, at least. > > But currently SoC doesn't keep the PCM instances, so it cannot be > implemented as it is... Liam, any plan or known issue regarding this? > I've just logged a bug :- https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3131 Should get some time to look at this later in the week. Liam