2019-01-15 11:25:42 +08:00
|
|
|
From e388f9e1fbdf42469675d0d4fc571a7aa40741e4 Mon Sep 17 00:00:00 2001
|
2018-10-16 02:05:43 +08:00
|
|
|
From: "Pawse, GuruprasadX" <guruprasadx.pawse@intel.com>
|
|
|
|
Date: Tue, 12 Jul 2016 10:57:10 +0530
|
2019-01-15 11:25:42 +08:00
|
|
|
Subject: [PATCH 079/296] ASoC: Intel: Skylake: Probe-Increase Injector DMA
|
2018-10-16 02:05:43 +08:00
|
|
|
buffer size
|
|
|
|
|
|
|
|
DMA buffer size needed for 48KHz, 4 channel, 32 bit data scheduled
|
|
|
|
at 4ms for 2 probe packets is = 2* [ 24 + (48*4*4*32/8) + 8] = 6208.
|
|
|
|
This is the worst case buffer for current set of usecases.
|
|
|
|
Increase the DMA buffer size to this value for now until an optimal
|
|
|
|
buffer size value is arrived at.
|
|
|
|
|
|
|
|
Change-Id: Iaf7c3229c6217c10c0c6871c358e9df74b552414
|
|
|
|
Signed-off-by: Pawse, GuruprasadX <guruprasadx.pawse@intel.com>
|
|
|
|
Reviewed-on:
|
|
|
|
Reviewed-by: Jayanti, Satya Charitardha <satya.charitardha.jayanti@intel.com>
|
|
|
|
Tested-by: Jayanti, Satya Charitardha <satya.charitardha.jayanti@intel.com>
|
|
|
|
---
|
2019-01-15 11:25:42 +08:00
|
|
|
sound/soc/intel/skylake/skl-topology.c | 7 +++++++
|
|
|
|
1 file changed, 7 insertions(+)
|
2018-10-16 02:05:43 +08:00
|
|
|
|
|
|
|
diff --git a/sound/soc/intel/skylake/skl-topology.c b/sound/soc/intel/skylake/skl-topology.c
|
2019-01-15 11:25:42 +08:00
|
|
|
index bb8ce1d37522..2e4a894f58a4 100644
|
2018-10-16 02:05:43 +08:00
|
|
|
--- a/sound/soc/intel/skylake/skl-topology.c
|
|
|
|
+++ b/sound/soc/intel/skylake/skl-topology.c
|
2019-01-15 11:25:42 +08:00
|
|
|
@@ -98,6 +98,13 @@ void skl_tplg_d0i3_put(struct skl *skl, enum d0i3_capability caps)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-16 02:05:43 +08:00
|
|
|
+/*
|
|
|
|
+ * DMA buffer size needed for 48KHz, 4 channel, 32 bit data
|
|
|
|
+ * scheduled at 4ms for 2 probe packets is
|
|
|
|
+ * 2* [ 24 + (48*4*4*32/8) + 8] = 6208.
|
|
|
|
+ */
|
|
|
|
+#define SKL_INJECT_PROBE_DMA_BUFF_SIZE 6208
|
2019-01-15 11:25:42 +08:00
|
|
|
+
|
|
|
|
/*
|
|
|
|
* SKL DSP driver modelling uses only few DAPM widgets so for rest we will
|
|
|
|
* ignore. This helpers checks if the SKL driver handles this widget type
|
2018-10-16 02:05:43 +08:00
|
|
|
--
|
2018-12-27 17:53:01 +08:00
|
|
|
2.19.1
|
2018-10-16 02:05:43 +08:00
|
|
|
|