clear-pkgs-linux-iot-lts2018/0160-ASoC-Intel-Skylake-Avo...

43 lines
1.6 KiB
Diff

From 57baaa7f04c0c64ee14683d6a741aa15a8890dc5 Mon Sep 17 00:00:00 2001
From: "R, Dharageswari" <dharageswari.r@intel.com>
Date: Fri, 26 Feb 2016 20:00:57 +0530
Subject: [PATCH 160/550] 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 <dharageswari.r@intel.com>
Signed-off-by: Pawse, GuruprasadX <guruprasadx.pawse@intel.com>
Reviewed-on:
Reviewed-by: Prodduvaka, Leoni <leoni.prodduvaka@intel.com>
Reviewed-by: Nc, Shreyas <shreyas.nc@intel.com>
Reviewed-by: Kp, Jeeja <jeeja.kp@intel.com>
Reviewed-by: Diwakar, Praveen <praveen.diwakar@intel.com>
Tested-by: Sm, Bhadur A <bhadur.a.sm@intel.com>
---
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 a6901c223652..a7b8df50aa9b 100644
--- a/sound/soc/intel/skylake/skl-pcm.c
+++ b/sound/soc/intel/skylake/skl-pcm.c
@@ -536,7 +536,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
--
2.19.1