diff options
author | Ravulapati Vishnu vardhan rao <Vishnuvardhanrao.Ravulapati@amd.com> | 2020-01-17 17:15:09 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-01-17 15:31:24 +0000 |
commit | a174a6c226796824cb2f78157c0b183ed472fa3f (patch) | |
tree | 9c5a858d3200efa1a552325c4b3e6f21154ecc4e /sound/soc/amd | |
parent | f9f5bbf5783cd63369d3e6c8cf27e2bd7c5ac2c3 (diff) |
ASoC: amd: Additional DAI for I2S SP instance.
I2S SP instance has separate BCLK and LRCLK for Tx and Rx.
Creating additional DAI for Rx.
Signed-off-by: Ravulapati Vishnu vardhan rao <Vishnuvardhanrao.Ravulapati@amd.com>
Link: https://lore.kernel.org/r/1579261510-12580-1-git-send-email-Vishnuvardhanrao.Ravulapati@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd')
-rw-r--r-- | sound/soc/amd/raven/acp3x.h | 2 | ||||
-rw-r--r-- | sound/soc/amd/raven/pci-acp3x.c | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sound/soc/amd/raven/acp3x.h b/sound/soc/amd/raven/acp3x.h index b6a80dc0b641..21e7ac017f2b 100644 --- a/sound/soc/amd/raven/acp3x.h +++ b/sound/soc/amd/raven/acp3x.h @@ -13,7 +13,7 @@ #define TDM_ENABLE 1 #define TDM_DISABLE 0 -#define ACP3x_DEVS 3 +#define ACP3x_DEVS 4 #define ACP3x_PHY_BASE_ADDRESS 0x1240000 #define ACP3x_I2S_MODE 0 #define ACP3x_REG_START 0x1240000 diff --git a/sound/soc/amd/raven/pci-acp3x.c b/sound/soc/amd/raven/pci-acp3x.c index 2f9f52905853..65330bb50e74 100644 --- a/sound/soc/amd/raven/pci-acp3x.c +++ b/sound/soc/amd/raven/pci-acp3x.c @@ -225,7 +225,13 @@ static int snd_acp3x_probe(struct pci_dev *pci, pdevinfo[2].id = 1; pdevinfo[2].parent = &pci->dev; pdevinfo[2].num_res = 1; - pdevinfo[2].res = &adata->res[2]; + pdevinfo[2].res = &adata->res[1]; + + pdevinfo[3].name = "acp3x_i2s_playcap"; + pdevinfo[3].id = 2; + pdevinfo[3].parent = &pci->dev; + pdevinfo[3].num_res = 1; + pdevinfo[3].res = &adata->res[2]; for (i = 0; i < ACP3x_DEVS; i++) { adata->pdev[i] = platform_device_register_full(&pdevinfo[i]); |