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: "Jayanti, Satya Charitardha" <satya.charitardha.jayanti@intel.com>
|
|
|
|
Date: Wed, 4 Jan 2017 20:41:55 +0530
|
2019-03-29 14:12:17 +08:00
|
|
|
Subject: [PATCH] ASoC: Intel: CNL: Add DAIs for SDW Aggregation
|
2018-10-16 02:05:43 +08:00
|
|
|
|
|
|
|
This patch adds DAI to enable Aggregation feature for
|
|
|
|
playback and capture on SoundWire Master 1 and Master 2
|
|
|
|
with RT700 codec. It also makes changes in channel and
|
|
|
|
format configurations for both playback and capture in DAIs.
|
|
|
|
|
|
|
|
Change-Id: I252733c39e2e81a2aa8c2e4c44a9416a02aafab2
|
|
|
|
Signed-off-by: Jayanti, Satya Charitardha <satya.charitardha.jayanti@intel.com>
|
|
|
|
Reviewed-on:
|
|
|
|
Reviewed-by: Singh, Guneshwor O <guneshwor.o.singh@intel.com>
|
|
|
|
Reviewed-by: Diwakar, Praveen <praveen.diwakar@intel.com>
|
|
|
|
Tested-by: Avati, Santosh Kumar <santosh.kumar.avati@intel.com>
|
|
|
|
---
|
|
|
|
sound/soc/intel/skylake/skl-pcm.c | 34 +++++++++++++++++++++++++++----
|
|
|
|
1 file changed, 30 insertions(+), 4 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/sound/soc/intel/skylake/skl-pcm.c b/sound/soc/intel/skylake/skl-pcm.c
|
2020-10-27 02:14:06 +08:00
|
|
|
index 23f457b1889d..1457e351efc4 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
|
|
|
@@ -1363,17 +1363,17 @@ static struct snd_soc_dai_driver skl_platform_dai[] = {
|
2018-10-16 02:05:43 +08:00
|
|
|
.ops = &skl_sdw_dai_ops,
|
|
|
|
.playback = {
|
|
|
|
.stream_name = "SDW Tx10",
|
|
|
|
- .channels_min = HDA_STEREO,
|
|
|
|
+ .channels_min = HDA_MONO,
|
|
|
|
.channels_max = HDA_STEREO,
|
|
|
|
.rates = SNDRV_PCM_RATE_48000,
|
|
|
|
- .formats = SNDRV_PCM_FMTBIT_S16_LE,
|
|
|
|
+ .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE,
|
|
|
|
},
|
|
|
|
.capture = {
|
|
|
|
.stream_name = "SDW Rx10",
|
|
|
|
- .channels_min = HDA_STEREO,
|
|
|
|
+ .channels_min = HDA_MONO,
|
|
|
|
.channels_max = HDA_STEREO,
|
|
|
|
.rates = SNDRV_PCM_RATE_48000,
|
|
|
|
- .formats = SNDRV_PCM_FMTBIT_S16_LE,
|
|
|
|
+ .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2019-05-23 10:08:33 +08:00
|
|
|
@@ -1414,6 +1414,32 @@ static struct snd_soc_dai_driver skl_platform_dai[] = {
|
2018-10-16 02:05:43 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
+#ifdef CONFIG_SND_SOC_SDW_AGGM1M2
|
|
|
|
+{
|
|
|
|
+ /*
|
|
|
|
+ * Currently adding 1 playback and 1 capture pin, ideally it
|
|
|
|
+ * should be coming from CLT based on endpoints to be supported
|
|
|
|
+ */
|
|
|
|
+ .name = "SDW2 Pin",
|
|
|
|
+ .id = SDW_BE_DAI_ID_MSTR2,
|
|
|
|
+ .ops = &skl_sdw_dai_ops,
|
|
|
|
+ .playback = {
|
|
|
|
+ .stream_name = "SDW2 Tx",
|
|
|
|
+ .channels_min = HDA_MONO,
|
|
|
|
+ .channels_max = HDA_STEREO,
|
|
|
|
+ .rates = SNDRV_PCM_RATE_48000,
|
|
|
|
+ .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE,
|
|
|
|
+ },
|
|
|
|
+ .capture = {
|
|
|
|
+ .stream_name = "SDW2 Rx",
|
|
|
|
+ .channels_min = HDA_MONO,
|
|
|
|
+ .channels_max = HDA_STEREO,
|
|
|
|
+ .rates = SNDRV_PCM_RATE_48000,
|
|
|
|
+ .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE,
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+},
|
|
|
|
+#endif
|
|
|
|
{
|
|
|
|
/* Currently adding 1 playback and 1 capture pin, ideally it
|
|
|
|
* should be coming from CLT based on endpoints to be supported
|
|
|
|
--
|
2019-04-08 18:08:36 +08:00
|
|
|
https://clearlinux.org
|
2018-10-16 02:05:43 +08:00
|
|
|
|