diff options
author | Vijendar Mukunda <Vijendar.Mukunda@amd.com> | 2018-11-12 11:04:59 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-11-13 11:44:09 -0800 |
commit | 67aa06aef5836d2ceb1b9280ca2cee9cc4b1e004 (patch) | |
tree | bbd81f6d2d430d072022224c8d0c0142b4e8fb7a /sound/soc/amd/raven/acp3x.h | |
parent | 2b5f290e10266037338631c03ab6bea51f0a7ebf (diff) |
ASoC: amd: add acp3x tdm mode support
ACP3x I2S (CPU DAI) can act in normal I2S and TDM modes.
Added support for TDM mode.
Desired mode can be selected from ASoC machine driver.
Signed-off-by: Maruthi Bayyavarapu <maruthi.bayyavarapu@amd.com>
Tested-by: Ravulapati Vishnu vardhan Rao <Vishnuvardhanrao.Ravulapati@amd.com>
Signed-off-by: Vijendar Mukunda <vijendar.mukunda@amd.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/raven/acp3x.h')
-rw-r--r-- | sound/soc/amd/raven/acp3x.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/amd/raven/acp3x.h b/sound/soc/amd/raven/acp3x.h index 9f33e34b868e..95fef8570577 100644 --- a/sound/soc/amd/raven/acp3x.h +++ b/sound/soc/amd/raven/acp3x.h @@ -32,6 +32,13 @@ #define MIN_BUFFER MAX_BUFFER #define FIFO_SIZE 0x100 #define DMA_SIZE 0x40 +#define FRM_LEN 0x100 + +#define SLOT_WIDTH_8 0x08 +#define SLOT_WIDTH_16 0x10 +#define SLOT_WIDTH_24 0x18 +#define SLOT_WIDTH_32 0x20 + static inline u32 rv_readl(void __iomem *base_addr) { |