* Re: [PATCH 2/2] ASoC: OMAP: reconfigure DMA to resume audio
[not found] <1258056918-19769-1-git-send-email-jwang@ti.com>
@ 2009-11-13 13:50 ` Mark Brown
2009-11-13 17:48 ` Wang, Jane
0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2009-11-13 13:50 UTC (permalink / raw)
To: Jane Wang; +Cc: alsa-devel, linux-omap, peter.ujfalusi
On Thu, Nov 12, 2009 at 02:15:18PM -0600, Jane Wang wrote:
> Reconfigure DMA transfer parameters to resume audio after system comming out of OFF state.
> Signed-off-by: Jane Wang <jwang@ti.com>
This looks OK to me but I'd like an ack from the OMAP folks. Adding
Jarkko as well as he's the maintainer for OMAP audio.
> ---
> sound/soc/omap/omap-pcm.c | 7 ++++++-
> 1 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c
> index 6a829ee..5e04390 100644
> --- a/sound/soc/omap/omap-pcm.c
> +++ b/sound/soc/omap/omap-pcm.c
> @@ -215,8 +215,13 @@ static int omap_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
>
> spin_lock_irqsave(&prtd->lock, flags);
> switch (cmd) {
> - case SNDRV_PCM_TRIGGER_START:
> case SNDRV_PCM_TRIGGER_RESUME:
> + /* Reconfigure DMA transfer parameters
> + * in order to come back from OFF mode
> + */
> + omap_pcm_prepare(substream);
> + /* fall through */
> + case SNDRV_PCM_TRIGGER_START:
> case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
> prtd->period_index = 0;
> /* Configure McBSP internal buffer usage */
> --
> 1.5.4.3
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] ASoC: OMAP: reconfigure DMA to resume audio
2009-11-13 13:50 ` [PATCH 2/2] ASoC: OMAP: reconfigure DMA to resume audio Mark Brown
@ 2009-11-13 17:48 ` Wang, Jane
0 siblings, 0 replies; 4+ messages in thread
From: Wang, Jane @ 2009-11-13 17:48 UTC (permalink / raw)
To: Mark Brown; +Cc: alsa-devel, linux-omap, peter.ujfalusi
> -----Original Message-----
> From: Mark Brown [mailto:broonie@opensource.wolfsonmicro.com]
> Sent: Friday, November 13, 2009 7:51 AM
> To: Wang, Jane
> Cc: alsa-devel@alsa-project.org; linux-omap@vger.kernel.org;
> peter.ujfalusi@nokia.com; Jarkko Nikula
> Subject: Re: [PATCH 2/2] ASoC: OMAP: reconfigure DMA to resume audio
>
> On Thu, Nov 12, 2009 at 02:15:18PM -0600, Jane Wang wrote:
> > Reconfigure DMA transfer parameters to resume audio after system comming
> out of OFF state.
>
> > Signed-off-by: Jane Wang <jwang@ti.com>
>
> This looks OK to me but I'd like an ack from the OMAP folks. Adding
> Jarkko as well as he's the maintainer for OMAP audio.
>
Thanks. I think my original patch failed to post on the mailing list. I will resend the patch and cc Jarkko.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] ASoC: OMAP: reconfigure DMA to resume audio
2009-11-13 18:02 Jane Wang
@ 2009-11-14 8:36 ` Jarkko Nikula
0 siblings, 0 replies; 4+ messages in thread
From: Jarkko Nikula @ 2009-11-14 8:36 UTC (permalink / raw)
To: Jane Wang; +Cc: alsa-devel, linux-omap, peter.ujfalusi, broonie
Hi
On Fri, 13 Nov 2009 12:02:03 -0600
Jane Wang <jwang@ti.com> wrote:
> Reconfigure DMA transfer parameters to resume audio after system comming out of OFF state.
>
> Signed-off-by: Jane Wang <jwang@ti.com>
> ---
> sound/soc/omap/omap-pcm.c | 7 ++++++-
> 1 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c
> index 6a829ee..5e04390 100644
> --- a/sound/soc/omap/omap-pcm.c
> +++ b/sound/soc/omap/omap-pcm.c
> @@ -215,8 +215,13 @@ static int omap_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
>
> spin_lock_irqsave(&prtd->lock, flags);
> switch (cmd) {
> - case SNDRV_PCM_TRIGGER_START:
> case SNDRV_PCM_TRIGGER_RESUME:
> + /* Reconfigure DMA transfer parameters
> + * in order to come back from OFF mode
> + */
> + omap_pcm_prepare(substream);
> + /* fall through */
Again looks simple workaround for the audio case for restoring the
DMA context but how about all other DMA clients if the low-level DMA
module expects that the clients must do the context restore?
I'm not the PM expert but I think only need for PM in omap-pcm.c or
omap-mcbsp.c would be to dealing with possible suspend/resume order not
to bring up the low-level module back alive.
--
Jarkko
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/2] ASoC: OMAP: reconfigure DMA to resume audio
@ 2009-11-13 18:02 Jane Wang
2009-11-14 8:36 ` Jarkko Nikula
0 siblings, 1 reply; 4+ messages in thread
From: Jane Wang @ 2009-11-13 18:02 UTC (permalink / raw)
To: alsa-devel, linux-omap; +Cc: broonie, peter.ujfalusi, Jane Wang
Reconfigure DMA transfer parameters to resume audio after system comming out of OFF state.
Signed-off-by: Jane Wang <jwang@ti.com>
---
sound/soc/omap/omap-pcm.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c
index 6a829ee..5e04390 100644
--- a/sound/soc/omap/omap-pcm.c
+++ b/sound/soc/omap/omap-pcm.c
@@ -215,8 +215,13 @@ static int omap_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
spin_lock_irqsave(&prtd->lock, flags);
switch (cmd) {
- case SNDRV_PCM_TRIGGER_START:
case SNDRV_PCM_TRIGGER_RESUME:
+ /* Reconfigure DMA transfer parameters
+ * in order to come back from OFF mode
+ */
+ omap_pcm_prepare(substream);
+ /* fall through */
+ case SNDRV_PCM_TRIGGER_START:
case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
prtd->period_index = 0;
/* Configure McBSP internal buffer usage */
--
1.5.4.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-11-14 8:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1258056918-19769-1-git-send-email-jwang@ti.com>
2009-11-13 13:50 ` [PATCH 2/2] ASoC: OMAP: reconfigure DMA to resume audio Mark Brown
2009-11-13 17:48 ` Wang, Jane
2009-11-13 18:02 Jane Wang
2009-11-14 8:36 ` Jarkko Nikula
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.