public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [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
[parent not found: <1258056918-19769-1-git-send-email-jwang@ti.com>]

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 --
2009-11-13 18:02 [PATCH 2/2] ASoC: OMAP: reconfigure DMA to resume audio Jane Wang
2009-11-14  8:36 ` Jarkko Nikula
     [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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox