diff options
author | Shengjiu Wang <shengjiu.wang@freescale.com> | 2014-07-29 06:39:37 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-29 08:03:45 -0400 |
commit | 689dc643859953651ffb7111fdbcff2eb0f02841 (patch) | |
tree | d4eb13fcdf03cadc1b3cc6ba900672c8335f6947 /sound/soc/codecs/cs42xx8.c | |
parent | afb7bb45bb904da3704aad47adc4615a81f515c5 (diff) |
ASoC: cs42xx8: Add SND_SOC_DAIFMT_DSP_A support
According to the spec, the definition of TDM and ONELINE_24 for
CS42XX8_INTF_DAC and CS42XX8_INTF_ADC is wrong. correct them and enable
SND_SOC_DAIFMT_DSP_A support.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Acked-by: Brian Austin <brian.austin@cirrus.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/cs42xx8.c')
-rw-r--r-- | sound/soc/codecs/cs42xx8.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/cs42xx8.c b/sound/soc/codecs/cs42xx8.c index ec53ffc4d8ce..02b1520ae0bc 100644 --- a/sound/soc/codecs/cs42xx8.c +++ b/sound/soc/codecs/cs42xx8.c | |||
@@ -219,6 +219,9 @@ static int cs42xx8_set_dai_fmt(struct snd_soc_dai *codec_dai, | |||
219 | case SND_SOC_DAIFMT_RIGHT_J: | 219 | case SND_SOC_DAIFMT_RIGHT_J: |
220 | val = CS42XX8_INTF_DAC_DIF_RIGHTJ | CS42XX8_INTF_ADC_DIF_RIGHTJ; | 220 | val = CS42XX8_INTF_DAC_DIF_RIGHTJ | CS42XX8_INTF_ADC_DIF_RIGHTJ; |
221 | break; | 221 | break; |
222 | case SND_SOC_DAIFMT_DSP_A: | ||
223 | val = CS42XX8_INTF_DAC_DIF_TDM | CS42XX8_INTF_ADC_DIF_TDM; | ||
224 | break; | ||
222 | default: | 225 | default: |
223 | dev_err(codec->dev, "unsupported dai format\n"); | 226 | dev_err(codec->dev, "unsupported dai format\n"); |
224 | return -EINVAL; | 227 | return -EINVAL; |