diff options
author | Fabio Baltieri <fabio.baltieri@linaro.org> | 2013-05-21 12:04:08 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-05-21 11:35:17 -0500 |
commit | b296263398f08d21e68d5d7b2afc43228c208b71 (patch) | |
tree | a94d722f574324112b5674fa02ec073389d61178 /sound/soc/codecs/ab8500-codec.h | |
parent | aba1e2be4dcfda7069cc0b82c73b89707595a454 (diff) | |
download | linux-stable-b296263398f08d21e68d5d7b2afc43228c208b71.tar.gz linux-stable-b296263398f08d21e68d5d7b2afc43228c208b71.tar.bz2 linux-stable-b296263398f08d21e68d5d7b2afc43228c208b71.zip |
ASoC: ab8500-codec: Set tx dai slots from tx_mask
Replace hard-coded tx slot numbers from ab8500_codec_set_dai_tdm_slot
using the ones requested by the machine driver in tx_mask instead.
Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/ab8500-codec.h')
-rw-r--r-- | sound/soc/codecs/ab8500-codec.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/codecs/ab8500-codec.h b/sound/soc/codecs/ab8500-codec.h index 114f69a0c629..4224b525cb2f 100644 --- a/sound/soc/codecs/ab8500-codec.h +++ b/sound/soc/codecs/ab8500-codec.h @@ -24,6 +24,13 @@ #define AB8500_SUPPORTED_RATE (SNDRV_PCM_RATE_48000) #define AB8500_SUPPORTED_FMT (SNDRV_PCM_FMTBIT_S16_LE) +/* AB8500 interface slot offset definitions */ + +#define AB8500_AD_DATA0_OFFSET 0 +#define AB8500_DA_DATA0_OFFSET 8 +#define AB8500_AD_DATA1_OFFSET 16 +#define AB8500_DA_DATA1_OFFSET 24 + /* AB8500 audio bank (0x0d) register definitions */ #define AB8500_POWERUP 0x00 |