]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ASoC: Intel: mfld-pcm: don't call trigger ops to DSP for internal streams
authorVinod Koul <vinod.koul@intel.com>
Tue, 9 Sep 2014 09:41:24 +0000 (15:11 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 16 Sep 2014 18:53:53 +0000 (11:53 -0700)
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>
sound/soc/intel/sst-mfld-platform-pcm.c

index 85deecd82b928c8b9e9dc27a953b75b457907992..9906b7c1c2e13e9764999c63691cf9416edaf88c 100644 (file)
@@ -464,6 +464,8 @@ static int sst_platform_pcm_trigger(struct snd_pcm_substream *substream,
        struct snd_soc_pcm_runtime *rtd = substream->private_data;
 
        dev_dbg(rtd->dev, "sst_platform_pcm_trigger called\n");
+       if (substream->pcm->internal)
+               return 0;
        stream = substream->runtime->private_data;
        str_id = stream->stream_info.str_id;
        switch (cmd) {