43 lines
1.5 KiB
Diff
43 lines
1.5 KiB
Diff
From 0000000000000000000000000000000000000000 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] 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
|
|
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 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
|
|
|