74 lines
2.2 KiB
Diff
74 lines
2.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: "Panwar, Ashish" <ashish.panwar@intel.com>
|
|
Date: Fri, 18 Mar 2016 16:02:19 +0530
|
|
Subject: [PATCH] ASoC: Intel: Skylake: Add trace buffer dais for CNL
|
|
|
|
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
|
|
index e3eb142..b02b989 100644
|
|
--- a/sound/soc/intel/skylake/skl-pcm.c
|
|
+++ b/sound/soc/intel/skylake/skl-pcm.c
|
|
@@ -751,6 +751,10 @@ static int skl_get_compr_core(struct snd_compr_stream *stream)
|
|
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;
|
|
}
|
|
@@ -909,7 +913,7 @@ static struct snd_soc_dai_driver skl_fe_dai[] = {
|
|
.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,
|
|
},
|
|
@@ -924,6 +928,26 @@ static struct snd_soc_dai_driver skl_fe_dai[] = {
|
|
.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,
|
|
--
|
|
https://clearlinux.org
|
|
|