Re: [PATCH] Add D1 power event to power down event sequence

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At Tue, 20 Nov 2007 09:25:30 +0000,
Mark Brown wrote:
> 
> From: Liam Girdwood <liam@xxxxxxxxxxxxxxxxxxxxx>

Looks suspicious.  Also, sign-off is missing.


Takashi

> 
> ---
>  sound/soc/soc-core.c |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
> index 265bd55..f3e1b74 100644
> --- a/sound/soc/soc-core.c
> +++ b/sound/soc/soc-core.c
> @@ -288,6 +288,14 @@ static void close_delayed_work(struct work_struct *work)
>  		/* are we waiting on this codec DAI stream */
>  		if (codec_dai->pop_wait == 1) {
>  
> +			/* power down the codec to D1 if no longer active */
> +			if (codec->active == 0) {
> +				dbg("pop wq D1 %s %s\n", codec->name,
> +					codec_dai->playback.stream_name);
> +				snd_soc_dapm_device_event(socdev,
> +					SNDRV_CTL_POWER_D1);
> +			}
> +
>  			codec_dai->pop_wait = 0;
>  			snd_soc_dapm_stream_event(codec,
>  				codec_dai->playback.stream_name,
> -- 
> 1.5.3.5
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@xxxxxxxxxxxxxxxx
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux