diff options
author | Dan Murphy <dmurphy@ti.com> | 2020-06-26 17:41:40 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-06-29 19:48:53 +0200 |
commit | d7bd40ae55ce339a3c9be7fc2087c671d3d80894 (patch) | |
tree | 88ff69f47021020a27cc83a8c8fc94595e8503e3 /sound/soc/codecs/tas2562.h | |
parent | ASoC: Documentation: fix reference to renamed source file (diff) | |
download | linux-d7bd40ae55ce339a3c9be7fc2087c671d3d80894.tar.xz linux-d7bd40ae55ce339a3c9be7fc2087c671d3d80894.zip |
ASoC: tas2562: Add right and left channel slot programming
Add programming for the tdm slots for the right and left. This also
requires configuring the RX/TX offsets for the DAI format type.
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Link: https://lore.kernel.org/r/20200626154143.20351-1-dmurphy@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/tas2562.h')
-rw-r--r-- | sound/soc/codecs/tas2562.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/codecs/tas2562.h b/sound/soc/codecs/tas2562.h index 28e75fc431d0..18209f397921 100644 --- a/sound/soc/codecs/tas2562.h +++ b/sound/soc/codecs/tas2562.h @@ -34,6 +34,10 @@ #define TAS2562_TDM_DET TAS2562_REG(0, 0x11) #define TAS2562_REV_ID TAS2562_REG(0, 0x7d) +#define TAS2562_RX_OFF_MASK GENMASK(5, 1) +#define TAS2562_TX_OFF_MASK GENMASK(3, 1) +#define TAS2562_RIGHT_SLOT_SHIFT 4 + /* Page 2 */ #define TAS2562_DVC_CFG1 TAS2562_REG(2, 0x0c) #define TAS2562_DVC_CFG2 TAS2562_REG(2, 0x0d) @@ -49,7 +53,6 @@ #define TAS2562_TDM_CFG1_RX_EDGE_MASK BIT(0) #define TAS2562_TDM_CFG1_RX_FALLING 1 -#define TAS2562_TDM_CFG1_RX_OFFSET_MASK GENMASK(4, 0) #define TAS2562_TDM_CFG0_RAMPRATE_MASK BIT(5) #define TAS2562_TDM_CFG0_RAMPRATE_44_1 BIT(5) |