diff options
author | Ashish Chavan <ashish.chavan@kpitcummins.com> | 2012-10-11 04:14:39 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-10-14 21:09:52 -0400 |
commit | 5e82aaa751180e43326747483396bdf381e702de (patch) | |
tree | 6e706ce77b95f171f8ab2ee97120aa3faded34e0 /sound/soc/codecs/da9055.c | |
parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) |
ASoC: da9055: Add support for DSP mode of AIF
This patch adds AIF DSP mode support for da9055 codec driver.
Signed-off-by: Ashish Chavan <ashish.chavan@kpitcummins.com>
Signed-off-by: David Dajun Chen <david.chen@diasemi.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/da9055.c')
-rw-r--r-- | sound/soc/codecs/da9055.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/da9055.c b/sound/soc/codecs/da9055.c index 185d8dd36399..27c44547b829 100644 --- a/sound/soc/codecs/da9055.c +++ b/sound/soc/codecs/da9055.c | |||
@@ -173,6 +173,7 @@ | |||
173 | #define DA9055_AIF_FORMAT_I2S_MODE (0 << 0) | 173 | #define DA9055_AIF_FORMAT_I2S_MODE (0 << 0) |
174 | #define DA9055_AIF_FORMAT_LEFT_J (1 << 0) | 174 | #define DA9055_AIF_FORMAT_LEFT_J (1 << 0) |
175 | #define DA9055_AIF_FORMAT_RIGHT_J (2 << 0) | 175 | #define DA9055_AIF_FORMAT_RIGHT_J (2 << 0) |
176 | #define DA9055_AIF_FORMAT_DSP (3 << 0) | ||
176 | #define DA9055_AIF_WORD_S16_LE (0 << 2) | 177 | #define DA9055_AIF_WORD_S16_LE (0 << 2) |
177 | #define DA9055_AIF_WORD_S20_3LE (1 << 2) | 178 | #define DA9055_AIF_WORD_S20_3LE (1 << 2) |
178 | #define DA9055_AIF_WORD_S24_LE (2 << 2) | 179 | #define DA9055_AIF_WORD_S24_LE (2 << 2) |
@@ -1155,6 +1156,9 @@ static int da9055_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt) | |||
1155 | case SND_SOC_DAIFMT_RIGHT_J: | 1156 | case SND_SOC_DAIFMT_RIGHT_J: |
1156 | aif_ctrl = DA9055_AIF_FORMAT_RIGHT_J; | 1157 | aif_ctrl = DA9055_AIF_FORMAT_RIGHT_J; |
1157 | break; | 1158 | break; |
1159 | case SND_SOC_DAIFMT_DSP_A: | ||
1160 | aif_ctrl = DA9055_AIF_FORMAT_DSP; | ||
1161 | break; | ||
1158 | default: | 1162 | default: |
1159 | return -EINVAL; | 1163 | return -EINVAL; |
1160 | } | 1164 | } |