From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: "R, Dharageswari" Date: Fri, 26 Feb 2016 20:00:57 +0530 Subject: [PATCH] ASoC: Intel: Skylake: Avoid resume capablity for capture streams DMA resume capability is not supported by the HW. Hence this patch avoids resume capablity for capture streams. Change-Id: If3f44facdd746677d8b1021759df996a09b0c024 Signed-off-by: R, Dharageswari Signed-off-by: Pawse, GuruprasadX Reviewed-on: Reviewed-by: Prodduvaka, Leoni Reviewed-by: Nc, Shreyas Reviewed-by: Kp, Jeeja Reviewed-by: Diwakar, Praveen Tested-by: Sm, Bhadur A --- sound/soc/intel/skylake/skl-pcm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sound/soc/intel/skylake/skl-pcm.c b/sound/soc/intel/skylake/skl-pcm.c index 07faaa2c80a4..9890374bfaa4 100644 --- a/sound/soc/intel/skylake/skl-pcm.c +++ b/sound/soc/intel/skylake/skl-pcm.c @@ -540,7 +540,11 @@ static int skl_pcm_trigger(struct snd_pcm_substream *substream, int cmd, switch (cmd) { case SNDRV_PCM_TRIGGER_RESUME: - if (!w->ignore_suspend) { + /* + * DMA resume capablity is not attempted for capture stream + * as it is not supported by HW + */ + if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { /* * enable DMA Resume enable bit for the stream, set the * dpib & lpib position to resume before starting the -- https://clearlinux.org