Commit 9fd3b5b1 authored by V sujith kumar Reddy's avatar V sujith kumar Reddy Committed by Mark Brown

ASoC: SOF: amd: ADD HS and SP virtual DAI.

ADD HS and SP virtual DAI driver to support AMD platforms.
Signed-off-by: default avatarV sujith kumar Reddy <Vsujithkumar.Reddy@amd.com>
Link: https://lore.kernel.org/r/20221123121911.3446224-4-vsujithkumar.reddy@amd.corp-partner.google.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent f9ced7db
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#define I2S_BT_INSTANCE 1 #define I2S_BT_INSTANCE 1
#define I2S_SP_INSTANCE 2 #define I2S_SP_INSTANCE 2
#define PDM_DMIC_INSTANCE 3 #define PDM_DMIC_INSTANCE 3
#define I2S_HS_VIRTUAL_INSTANCE 4
static struct snd_soc_dai_driver rembrandt_sof_dai[] = { static struct snd_soc_dai_driver rembrandt_sof_dai[] = {
[I2S_HS_INSTANCE] = { [I2S_HS_INSTANCE] = {
...@@ -112,6 +113,21 @@ static struct snd_soc_dai_driver rembrandt_sof_dai[] = { ...@@ -112,6 +113,21 @@ static struct snd_soc_dai_driver rembrandt_sof_dai[] = {
.rate_max = 48000, .rate_max = 48000,
}, },
}, },
[I2S_HS_VIRTUAL_INSTANCE] = {
.id = I2S_HS_VIRTUAL_INSTANCE,
.name = "acp-sof-hs-virtual",
.playback = {
.rates = SNDRV_PCM_RATE_8000_96000,
.formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 |
SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S32_LE,
.channels_min = 2,
.channels_max = 8,
.rate_min = 8000,
.rate_max = 96000,
},
.probe = &acp_dai_probe,
},
}; };
/* Rembrandt ops */ /* Rembrandt ops */
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#define I2S_BT_INSTANCE 0 #define I2S_BT_INSTANCE 0
#define I2S_SP_INSTANCE 1 #define I2S_SP_INSTANCE 1
#define PDM_DMIC_INSTANCE 2 #define PDM_DMIC_INSTANCE 2
#define I2S_SP_VIRTUAL_INSTANCE 3
static struct snd_soc_dai_driver renoir_sof_dai[] = { static struct snd_soc_dai_driver renoir_sof_dai[] = {
[I2S_BT_INSTANCE] = { [I2S_BT_INSTANCE] = {
...@@ -86,6 +87,21 @@ static struct snd_soc_dai_driver renoir_sof_dai[] = { ...@@ -86,6 +87,21 @@ static struct snd_soc_dai_driver renoir_sof_dai[] = {
.rate_max = 48000, .rate_max = 48000,
}, },
}, },
[I2S_SP_VIRTUAL_INSTANCE] = {
.id = I2S_SP_VIRTUAL_INSTANCE,
.name = "acp-sof-sp-virtual",
.playback = {
.rates = SNDRV_PCM_RATE_8000_96000,
.formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 |
SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S32_LE,
.channels_min = 2,
.channels_max = 8,
.rate_min = 8000,
.rate_max = 96000,
},
.probe = &acp_dai_probe,
},
}; };
/* Renoir ops */ /* Renoir ops */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment