All of lore.kernel.org
 help / color / mirror / Atom feed
From: zhangfei gao <zhangfei.gao@gmail.com>
To: alsa-devel@alsa-project.org
Cc: alsa-devel@vger.kernel.org
Subject: why snd_soc_suspend is not called
Date: Tue, 19 Jun 2012 13:12:05 +0800	[thread overview]
Message-ID: <CAMj5BkgV9odU+1VwhXx5w0Y8pPdHg25tHWNMX-5ecG_aL+r+cw@mail.gmail.com> (raw)

Hi, Mark

Excuse me, I am confused about snd_soc_suspend.

When realizing cpu_dai->driver->suspend, we found snd_soc_suspend is not called.
In fact, even soc_probe is not called since no soc-audio device.

We manually alloc soc-audio deivce before in platfrom.c.
dev = platform_device_alloc("soc-audio", -1);
platform_set_drvdata(device, &snd_soc_card);
platform_device_add(dev);

When running, system recommend using snd_soc_register_card instead.
After doing such modification, the audio could work.
But strangely snd_soc_suspend is not called, as well as soc-probe.
So cpu_dai->driver->suspend will no be called accordingly.

If manually add "soc-audio" in arch/, the soc-probe can be called.
But snd_soc_suspend still fail to be called.

Could you give me some suggestion?

Thanks a lot.

             reply	other threads:[~2012-06-19  5:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-19  5:12 zhangfei gao [this message]
2012-06-19  5:27 ` why snd_soc_suspend is not called zhangfei gao
2012-06-19  5:45 ` zhangfei gao
2012-06-19  9:30 ` Mark Brown
2012-06-21  2:47   ` zhangfei gao
2012-06-21  9:12     ` 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=CAMj5BkgV9odU+1VwhXx5w0Y8pPdHg25tHWNMX-5ecG_aL+r+cw@mail.gmail.com \
    --to=zhangfei.gao@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=alsa-devel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.