Skip to contentSkip to conversation

ASoC: OMAP: reconfigure DMA to resume audio

PATCH Mark Brown 2 participants 2 messages Nov 13, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Mark Brown

author
#1 lore raw
Quoted 3 lines · Jane Wang

Reconfigure DMA transfer parameters to resume audio after system comming out of OFF state.

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.

Quoted 26 lines
---
 sound/soc/omap/omap-pcm.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
sound/soc/omap/omap-pcm.c +6 -1
index 6a829ee..5e04390 100644
@@ -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 */
Signature · 1 line
1.5.4.3
#2 lore raw
Quoted 10 lines

-----Original Message-----
From: Mark Brown [mailto:[email protected]]
Sent: Friday, November 13, 2009 7:51 AM
To: Wang, Jane
Cc: [email protected]; [email protected]; [email protected]; Jarkko Nikula
Subject: Re: [PATCH 2/2] ASoC: OMAP: reconfigure DMA to resume audio

Quoted 9 lines
Quoted 1 line · Jane Wang

Reconfigure DMA transfer parameters to resume audio after system comming

out of OFF state.

Quoted 1 line

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.