From: Rajeev kumar <rajeev-dlh.kumar@st.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
tiwai@suse.de,
"spear--sw-devel@lists.codex.cro.st.com"
<spear--sw-devel@lists.codex.cro.st.com>,
Armando VISCONTI <armando.visconti@st.com>,
Shiraz HASHIM <shiraz.hashim@st.com>,
lrg@ti.com
Subject: Not able to restart audio after hibernation
Date: Fri, 6 Jan 2012 16:17:50 +0530 [thread overview]
Message-ID: <4F06D156.1020208@st.com> (raw)
Hello Mark,
I am testing my audio driver on spear platform with the linux kernel
2.6.37. During testing I put my system in hibernation mode and found
that there is no sound after resume. The steps I am using for
hibernation are
1. Have audio player on, select some audio, (using aplay utils)
2. Hibernate machine
3. Resume from hibernate
After resume it seems that there is no data available in the buffer to
play, as application is giving pcm_write error and exit.
While going through the suspend/resume implementation in the alsa
framework, get to know that feature to support hibernation is missing.
The suspend/resume implementation for audio is with dev_pm_ops which is
present in snd-core.c . If we look into the structure, we have only
suspend, resume and poweroff feature present in it. To support
hibernation we need freeze,thaw and restore also.
Please correct me if I am wrong?
Just for experiment I modified the structure and added freeze, thaw and
restore functionality, but the result is same. The new modified
structure looks like
static const struct dev_pm_ops soc_pm_ops = {
.suspend = soc_suspend,
.resume = soc_resume,
.freeze = soc_suspend,
.thaw = soc_resume,
.restore = soc_resume,
.poweroff = soc_poweroff,
}
Just for info audio is working fine in case of suspend-to-ram.
Best Regards
~Rajeev
next reply other threads:[~2012-01-06 10:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-06 10:47 Rajeev kumar [this message]
2012-01-06 18:32 ` Not able to restart audio after hibernation Mark Brown
2012-01-06 20:54 ` Tobin Davis
2012-01-06 23:25 ` Mark Brown
[not found] ` <20120109031645.GA21422@localhost.localdomain>
2012-01-09 5:53 ` 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=4F06D156.1020208@st.com \
--to=rajeev-dlh.kumar@st.com \
--cc=alsa-devel@alsa-project.org \
--cc=armando.visconti@st.com \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=lrg@ti.com \
--cc=shiraz.hashim@st.com \
--cc=spear--sw-devel@lists.codex.cro.st.com \
--cc=tiwai@suse.de \
/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).