projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b272cc7
)
ASoC: tlv320aic23: Clear TLV320AIC23_MS_MASTER bit for slave mode
author
Axel Lin
<axel.lin@gmail.com>
Thu, 27 Oct 2011 08:35:49 +0000
(16:35 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Thu, 27 Oct 2011 10:00:14 +0000
(12:00 +0200)
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>
sound/soc/codecs/tlv320aic23.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/tlv320aic23.c
b/sound/soc/codecs/tlv320aic23.c
index ab27dbcd1262937f841cc3b6d1331c6d0025adff..336de8f69a026e9a6da20af04f3b821d5ba69a33 100644
(file)
--- 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,
iface_reg |= TLV320AIC23_MS_MASTER;
break;
case SND_SOC_DAIFMT_CBS_CFS:
+ iface_reg &= ~TLV320AIC23_MS_MASTER;
break;
default:
return -EINVAL;