diff options
author | Vinod Koul <vinod.koul@intel.com> | 2015-02-12 09:59:57 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-02-24 00:43:59 +0900 |
commit | fc9406ab9b4a9aac0ab9ad213993824cbe9c65ac (patch) | |
tree | 4f39cd4f8a733572800a3ea2a6cbc2c2bf2150c4 | |
parent | e0b87d476bc13fc55e7000a84cd1d87c8fdc1f2f (diff) | |
download | lwn-fc9406ab9b4a9aac0ab9ad213993824cbe9c65ac.tar.gz lwn-fc9406ab9b4a9aac0ab9ad213993824cbe9c65ac.zip |
ASoC: Intel: add support for pcm stream suspend/resume
The driver didn't implement support for pcm stream suspend and resume, so
add it
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/intel/sst-mfld-platform-pcm.c | 2 |
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 7523cbef8780..ea0fa4b90bb0 100644 --- a/sound/soc/intel/sst-mfld-platform-pcm.c +++ b/sound/soc/intel/sst-mfld-platform-pcm.c @@ -594,11 +594,13 @@ static int sst_platform_pcm_trigger(struct snd_pcm_substream *substream, ret_val = stream->ops->stream_drop(sst->dev, str_id); break; case SNDRV_PCM_TRIGGER_PAUSE_PUSH: + case SNDRV_PCM_TRIGGER_SUSPEND: dev_dbg(rtd->dev, "sst: in pause\n"); status = SST_PLATFORM_PAUSED; ret_val = stream->ops->stream_pause(sst->dev, str_id); break; case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: + case SNDRV_PCM_TRIGGER_RESUME: dev_dbg(rtd->dev, "sst: in pause release\n"); status = SST_PLATFORM_RUNNING; ret_val = stream->ops->stream_pause_release(sst->dev, str_id); |