diff options
author | Peter Ujfalusi <peter.ujfalusi@nokia.com> | 2009-04-23 07:36:49 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-04-23 11:11:17 -0400 |
commit | 8a1f936acdfd53cb0a981f3f80483863dcd84fa9 (patch) | |
tree | 598b788262d3ad53b219dd0bf457c959dfb9c75b /sound/soc/codecs/twl4030.h | |
parent | 31a00c6b7c0c4f01be49f02660de920c8b82b613 (diff) |
ASoC: TWL4030: Add 4 channel TDM support
Support for 4 channel TDM (SND_SOC_DAIFMT_DSP_A) for twl4030
codec.
The channel allocations are:
Playback:
TDM i2s TWL RX
Channel 1 Left SDRL2
Channel 3 Right SDRR2
Channel 2 -- SDRL1
Channel 4 -- SDRR1
Capture:
TDM i2s TWL TX
Channel 1 Left TXL1
Channel 3 Right TXR1
Channel 2 -- TXL2
Channel 4 -- TXR2
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/twl4030.h')
-rw-r--r-- | sound/soc/codecs/twl4030.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sound/soc/codecs/twl4030.h b/sound/soc/codecs/twl4030.h index 981ec609495b..3441115136f6 100644 --- a/sound/soc/codecs/twl4030.h +++ b/sound/soc/codecs/twl4030.h | |||
@@ -116,6 +116,17 @@ | |||
116 | #define TWL4030_OPTION_1 (1 << 0) | 116 | #define TWL4030_OPTION_1 (1 << 0) |
117 | #define TWL4030_OPTION_2 (0 << 0) | 117 | #define TWL4030_OPTION_2 (0 << 0) |
118 | 118 | ||
119 | /* TWL4030_OPTION (0x02) Fields */ | ||
120 | |||
121 | #define TWL4030_ATXL1_EN (1 << 0) | ||
122 | #define TWL4030_ATXR1_EN (1 << 1) | ||
123 | #define TWL4030_ATXL2_VTXL_EN (1 << 2) | ||
124 | #define TWL4030_ATXR2_VTXR_EN (1 << 3) | ||
125 | #define TWL4030_ARXL1_VRX_EN (1 << 4) | ||
126 | #define TWL4030_ARXR1_EN (1 << 5) | ||
127 | #define TWL4030_ARXL2_EN (1 << 6) | ||
128 | #define TWL4030_ARXR2_EN (1 << 7) | ||
129 | |||
119 | /* TWL4030_REG_MICBIAS_CTL (0x04) Fields */ | 130 | /* TWL4030_REG_MICBIAS_CTL (0x04) Fields */ |
120 | 131 | ||
121 | #define TWL4030_MICBIAS2_CTL 0x40 | 132 | #define TWL4030_MICBIAS2_CTL 0x40 |