diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-10-27 04:35:49 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-27 06:00:14 -0400 |
commit | b01a3d69f85c0af0934451e0f5457f2f6e7f3e63 (patch) | |
tree | 4a2e0641eefca976a0204e73cd73e7452616e8e2 /sound | |
parent | b272cc769ac22014c0c60f2ebac46a2ae01300bf (diff) |
ASoC: tlv320aic23: Clear TLV320AIC23_MS_MASTER bit for slave mode
According to the datasheet:
Digital Audio Interface Format (07h) register:
BIT6: Master/slave mode
0: Slave
1: Master
Current code sets TLV320AIC23_MS_MASTER bit for master mode,
but does not clear it for slave mode.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/tlv320aic23.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/tlv320aic23.c b/sound/soc/codecs/tlv320aic23.c index ab27dbcd1262..336de8f69a02 100644 --- a/sound/soc/codecs/tlv320aic23.c +++ b/sound/soc/codecs/tlv320aic23.c | |||
@@ -430,6 +430,7 @@ static int tlv320aic23_set_dai_fmt(struct snd_soc_dai *codec_dai, | |||
430 | iface_reg |= TLV320AIC23_MS_MASTER; | 430 | iface_reg |= TLV320AIC23_MS_MASTER; |
431 | break; | 431 | break; |
432 | case SND_SOC_DAIFMT_CBS_CFS: | 432 | case SND_SOC_DAIFMT_CBS_CFS: |
433 | iface_reg &= ~TLV320AIC23_MS_MASTER; | ||
433 | break; | 434 | break; |
434 | default: | 435 | default: |
435 | return -EINVAL; | 436 | return -EINVAL; |