alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Shawn Guo <shawn.guo@freescale.com>
To: Fabio Estevam <festevam@gmail.com>
Cc: Fabio Estevam <fabio.estevam@freescale.com>,
	alsa-devel@alsa-project.org, broonie@kernel.org, timur@tabi.org
Subject: Re: [PATCH] ASoC: fsl_ssi: Add suspend/resume support
Date: Fri, 23 May 2014 17:18:21 +0800	[thread overview]
Message-ID: <20140523091820.GB2650@dragon> (raw)
In-Reply-To: <1400823536-31708-1-git-send-email-festevam@gmail.com>

On Fri, May 23, 2014 at 02:38:56AM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
> 
> Doing a suspend/resume sequence while playing an audio track in the backgroung
> causes broken audio right after resume:
> 
> root@freescale /$ aplay clarinet.wav &
> 
> root@freescale /home$ Playing WAVE 'clarinet.wav' : Signed 16 bit Little Endian,
>  Rate 44100 Hz, Mono
> 
> root@freescale /home$ echo mem > /sys/power/state 
> PM: Syncing filesystems ... done.
> Freezing user space processes ... (elapsed 0.002 seconds) done.
> Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done.
> Suspending console(s) (use no_console_suspend to debug)
> PM: suspend of devices complete after 37.082 msecs
> PM: suspend devices took 0.040 seconds
> PM: late suspend of devices complete after 4.234 msecs
> PM: noirq suspend of devices complete after 4.618 msecs
> Disabling non-boot CPUs ...
> PM: noirq resume of devices complete after 4.013 msecs
> PM: early resume of devices complete after 4.000 msecs
> PM: resume of devices complete after 68.907 msecs
> PM: resume devices took 0.070 seconds
> Restarting tasks ... Suspended. Trying resume. Failed. Restarting stream. Done.
> Suspended. Trying resume. Failed. Restarting stream. Done.
> Suspended. Trying resume. Failed. Restarting stream. Done.
> Suspended. Trying resume. Failed. Restarting stream. Done.
> Suspended. Trying resume. Failed. Restarting stream. Done.
> Suspended. Trying resume. Failed. Restarting stream. Done.
> Suspended. Trying resume. Failed. Restarting stream. Done.
> ....
> 
> Add SNDRV_PCM_TRIGGER_RESUME/SUSPEND cases so that we can gracefully handle
> system suspend/resume.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>

Acked-by: Shawn Guo <shawn.guo@freescale.com>

  reply	other threads:[~2014-05-23  9:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-23  5:38 [PATCH] ASoC: fsl_ssi: Add suspend/resume support Fabio Estevam
2014-05-23  9:18 ` Shawn Guo [this message]
2014-05-26 13:24 ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140523091820.GB2650@dragon \
    --to=shawn.guo@freescale.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=fabio.estevam@freescale.com \
    --cc=festevam@gmail.com \
    --cc=timur@tabi.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).