aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2014-09-09 05:41:24 -0400
committerMark Brown <broonie@kernel.org>2014-09-16 14:53:53 -0400
commitd2b16b8fa1b6352757cd0a58234591e1496a82ad (patch)
tree5073d78226f2e9203f6092c3d31d05fd4c0e601d
parent02024756e6ab3a3fcdc3b203552b16b345ebd97d (diff)
ASoC: Intel: mfld-pcm: don't call trigger ops to DSP for internal streams
For internal stream i.e. BE we have don't need trigger ops as that would be handled by DAPM for us in subsequent patches Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/intel/sst-mfld-platform-pcm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/intel/sst-mfld-platform-pcm.c b/sound/soc/intel/sst-mfld-platform-pcm.c
index 85deecd82b92..9906b7c1c2e1 100644
--- a/sound/soc/intel/sst-mfld-platform-pcm.c
+++ b/sound/soc/intel/sst-mfld-platform-pcm.c
@@ -464,6 +464,8 @@ static int sst_platform_pcm_trigger(struct snd_pcm_substream *substream,
464 struct snd_soc_pcm_runtime *rtd = substream->private_data; 464 struct snd_soc_pcm_runtime *rtd = substream->private_data;
465 465
466 dev_dbg(rtd->dev, "sst_platform_pcm_trigger called\n"); 466 dev_dbg(rtd->dev, "sst_platform_pcm_trigger called\n");
467 if (substream->pcm->internal)
468 return 0;
467 stream = substream->runtime->private_data; 469 stream = substream->runtime->private_data;
468 str_id = stream->stream_info.str_id; 470 str_id = stream->stream_info.str_id;
469 switch (cmd) { 471 switch (cmd) {