2019-03-29 14:12:17 +08:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2018-10-16 02:05:43 +08:00
|
|
|
From: "Panwar, Ashish" <ashish.panwar@intel.com>
|
|
|
|
Date: Fri, 18 Mar 2016 16:02:19 +0530
|
2019-03-29 14:12:17 +08:00
|
|
|
Subject: [PATCH] ASoC: Intel: Skylake: Add trace buffer dais for CNL
|
2018-10-16 02:05:43 +08:00
|
|
|
|
|
|
|
CNL needs 4 dais for logging, one for each core. Added 2
|
|
|
|
more dais here. It depends on the machine driver to make
|
|
|
|
use of appropriate dais based on the hardware platform.
|
|
|
|
|
|
|
|
Change-Id: If9df857895b8261cfebd61617542365187499ea1
|
|
|
|
Signed-off-by: Panwar, Ashish <ashish.panwar@intel.com>
|
|
|
|
Reviewed-on:
|
|
|
|
Reviewed-by: Shah, Hardik T <hardik.t.shah@intel.com>
|
|
|
|
Tested-by: Shah, Hardik T <hardik.t.shah@intel.com>
|
|
|
|
Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
|
|
|
|
---
|
|
|
|
sound/soc/intel/skylake/skl-pcm.c | 26 +++++++++++++++++++++++++-
|
|
|
|
1 file changed, 25 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/sound/soc/intel/skylake/skl-pcm.c b/sound/soc/intel/skylake/skl-pcm.c
|
2019-05-23 10:08:33 +08:00
|
|
|
index e3eb142..b02b989 100644
|
2018-10-16 02:05:43 +08:00
|
|
|
--- a/sound/soc/intel/skylake/skl-pcm.c
|
|
|
|
+++ b/sound/soc/intel/skylake/skl-pcm.c
|
2019-05-23 10:08:33 +08:00
|
|
|
@@ -751,6 +751,10 @@ static int skl_get_compr_core(struct snd_compr_stream *stream)
|
2018-10-16 02:05:43 +08:00
|
|
|
return 0;
|
|
|
|
else if (!strcmp(dai->name, "TraceBuffer1 Pin"))
|
|
|
|
return 1;
|
|
|
|
+ else if (!strcmp(dai->name, "TraceBuffer2 Pin"))
|
|
|
|
+ return 2;
|
|
|
|
+ else if (!strcmp(dai->name, "TraceBuffer3 Pin"))
|
|
|
|
+ return 3;
|
|
|
|
else
|
|
|
|
return INT_MIN;
|
|
|
|
}
|
2019-05-23 10:08:33 +08:00
|
|
|
@@ -909,7 +913,7 @@ static struct snd_soc_dai_driver skl_fe_dai[] = {
|
2018-10-16 02:05:43 +08:00
|
|
|
.compress_new = snd_soc_new_compress,
|
|
|
|
.cops = &skl_trace_compr_ops,
|
|
|
|
.capture = {
|
|
|
|
- .stream_name = "TraceBuffer Capture",
|
|
|
|
+ .stream_name = "TraceBuffer0 Capture",
|
|
|
|
.channels_min = HDA_MONO,
|
|
|
|
.channels_max = HDA_MONO,
|
|
|
|
},
|
2019-05-23 10:08:33 +08:00
|
|
|
@@ -924,6 +928,26 @@ static struct snd_soc_dai_driver skl_fe_dai[] = {
|
2018-10-16 02:05:43 +08:00
|
|
|
.channels_max = HDA_MONO,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
+{
|
|
|
|
+ .name = "TraceBuffer2 Pin",
|
|
|
|
+ .compress_new = snd_soc_new_compress,
|
|
|
|
+ .cops = &skl_trace_compr_ops,
|
|
|
|
+ .capture = {
|
|
|
|
+ .stream_name = "TraceBuffer2 Capture",
|
|
|
|
+ .channels_min = HDA_MONO,
|
|
|
|
+ .channels_max = HDA_MONO,
|
|
|
|
+ },
|
|
|
|
+},
|
|
|
|
+{
|
|
|
|
+ .name = "TraceBuffer3 Pin",
|
|
|
|
+ .compress_new = snd_soc_new_compress,
|
|
|
|
+ .cops = &skl_trace_compr_ops,
|
|
|
|
+ .capture = {
|
|
|
|
+ .stream_name = "TraceBuffer3 Capture",
|
|
|
|
+ .channels_min = HDA_MONO,
|
|
|
|
+ .channels_max = HDA_MONO,
|
|
|
|
+ },
|
|
|
|
+},
|
|
|
|
{
|
|
|
|
.name = "System Pin",
|
|
|
|
.ops = &skl_pcm_dai_ops,
|
|
|
|
--
|
2019-04-08 18:08:36 +08:00
|
|
|
https://clearlinux.org
|
2018-10-16 02:05:43 +08:00
|
|
|
|