Skip to contentSkip to conversation

ALSA: ASoc: DaVinci Delay start of ASP to trigger

PATCH Applied [email protected] 3 participants 3 messages Oct 3, 2010 – Oct 5, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: ASoc: DaVinci Delay start of ASP to trigger

From: Troy Kisky <[email protected]>

Since only 4 mainline ASoC codecs support the trigger callback, we cannot rely upon them stopping the frame clock if they are master and must assume it is running even if the sound is paused. Thus we cannot start the ASP until the trigger method.

---
 sound/soc/davinci/davinci-i2s.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
sound/soc/davinci/davinci-i2s.c +0 -6
index 9e8932a..a66c237 100644
@@ -572,10 +572,6 @@ static int davinci_i2s_prepare(struct snd_pcm_substream *substream,
 	struct davinci_mcbsp_dev *dev = dai->private_data;
 	int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
 	davinci_mcbsp_stop(dev, playback);
-	if ((dev->pcr & DAVINCI_MCBSP_PCR_FSXM) == 0) {
-		/* codec is master */
-		davinci_mcbsp_start(dev, substream);
-	}
 	return 0;
 }
 
@@ -585,8 +581,6 @@ static int davinci_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
 	struct davinci_mcbsp_dev *dev = dai->private_data;
 	int ret = 0;
 	int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
-	if ((dev->pcr & DAVINCI_MCBSP_PCR_FSXM) == 0)
-		return 0;	/* return if codec is master */
 
 	switch (cmd) {
 	case SNDRV_PCM_TRIGGER_START:
Signature · 1 line
1.7.0.4
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · On Sun, 2010-10-03 at 16:44 -0500, [email protected] wrote:

From: Troy Kisky <[email protected]>

Since only 4 mainline ASoC codecs support the trigger callback, we cannot rely upon them stopping the frame clock if they are master and must assume it is running even if the sound is paused. Thus we cannot start the ASP until the trigger method.

Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk
Applied
#2 lore raw
In reply to [email protected]
Quoted 7 lines · On Sun, Oct 03, 2010 at 04:44:19PM -0500, [email protected] wrote:

From: Troy Kisky <[email protected]>

Since only 4 mainline ASoC codecs support the trigger callback, we cannot rely upon them stopping the frame clock if they are master and must assume it is running even if the sound is paused. Thus we cannot start the ASP until the trigger method.

Applied, thanks.