From: Jarkko Nikula <jhnikula@gmail.com>
To: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Cc: "anuj.aggarwal@ti.com" <anuj.aggarwal@ti.com>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"Wang, Jane" <jwang@ti.com>,
"broonie@opensource.wolfsonmicro.com"
<broonie@opensource.wolfsonmicro.com>
Subject: Re: [PATCH 1/2] OMAP3: MCBSP: Suspend/resume failure fix
Date: Fri, 20 Nov 2009 15:53:43 +0200 [thread overview]
Message-ID: <20091120155343.baf0b9d3.jhnikula@gmail.com> (raw)
In-Reply-To: <200911200951.13181.peter.ujfalusi@nokia.com>
On Fri, 20 Nov 2009 09:51:13 +0200
Peter Ujfalusi <peter.ujfalusi@nokia.com> wrote:
> > My question is: is sysfs the only way to choose threshold or can it be made
> > as default? I could not see that happening in the code so thinking of the
> > possible reason of choosing not to do so. Because the user who wants to
> > hit suspend will not like to issue driver specific commands. Any specific
> > reason of not doing that by default?
>
> It is not selected as default on OMAP3, since it is a new feature, and we don't
> want to change the behavior of the audio. If the reports are positive regarding
> to the threshold mode, than we can make it as default on OMAP3, at least that is
> the plan AFAIK.
Yep. Currently we want to keep DMA behaviour consistent across the
OMAPs and McBSP ports since the large internal FIFO is found only
from McBSP2 on OMAP3.
This is good finding that you have found that it's the audio preventing
the suspend and the threshold transfer mode can make it hit better.
But anyway, I'm afraid that threshold mode doesn't help to create
robust suspend. Threshold allow the DMA and core to be mode in idle
between the FIFO fills and probably that's why suspend might work
during these idle periods. For robust implementation there must be
explicit code stopping and resuming all activity gracefully so that it
can hit the suspend also if the fill is happening or if using another
transfer mode.
--
Jarkko
next prev parent reply other threads:[~2009-11-20 13:53 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-13 17:39 [PATCH 1/2] OMAP3: MCBSP: Suspend/resume failure fix Jane Wang
2009-11-13 17:49 ` Mark Brown
2009-11-13 17:52 ` Wang, Jane
2009-11-13 18:10 ` [alsa-devel] " Mark Brown
2009-11-14 8:20 ` Jarkko Nikula
2009-11-18 18:28 ` Aggarwal, Anuj
2009-11-18 18:49 ` Wang, Jane
2009-11-19 7:34 ` Jarkko Nikula
2009-11-19 19:48 ` Anuj Aggarwal
2009-11-20 7:51 ` Peter Ujfalusi
2009-11-20 13:53 ` Jarkko Nikula [this message]
2009-11-20 14:09 ` Eero Nurkkala
2009-11-20 14:47 ` [alsa-devel] " Anuj Aggarwal
2009-11-30 11:50 ` Aggarwal, Anuj
2009-12-24 13:16 ` Aggarwal, Anuj
2009-12-28 6:10 ` Aggarwal, Anuj
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=20091120155343.baf0b9d3.jhnikula@gmail.com \
--to=jhnikula@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=anuj.aggarwal@ti.com \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=jwang@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=peter.ujfalusi@nokia.com \
/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