aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5645.c
diff options
context:
space:
mode:
authorBard Liao <bardliao@realtek.com>2014-11-12 20:55:22 -0500
committerMark Brown <broonie@kernel.org>2014-11-13 06:34:41 -0500
commit850577db99dbc4fdebe62d30d380de1878f77d2a (patch)
tree58c7045a7f2852f67b19daaf2de99c29b072633a /sound/soc/codecs/rt5645.c
parent5563502cb68d9520e13fe2350922ca88c4531c63 (diff)
ASoC: rt5645: add register setting for TDM
We need to set extra register to avoid a recording issue in TDM mode. Signed-off-by: Bard Liao <bardliao@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5645.c')
-rw-r--r--sound/soc/codecs/rt5645.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
index 665f8b64efe9..57afa12b2f54 100644
--- a/sound/soc/codecs/rt5645.c
+++ b/sound/soc/codecs/rt5645.c
@@ -2112,8 +2112,11 @@ static int rt5645_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
2112 struct snd_soc_codec *codec = dai->codec; 2112 struct snd_soc_codec *codec = dai->codec;
2113 unsigned int val = 0; 2113 unsigned int val = 0;
2114 2114
2115 if (rx_mask || tx_mask) 2115 if (rx_mask || tx_mask) {
2116 val |= (1 << 14); 2116 val |= (1 << 14);
2117 snd_soc_update_bits(codec, RT5645_BASS_BACK,
2118 RT5645_G_BB_BST_MASK, RT5645_G_BB_BST_25DB);
2119 }
2117 2120
2118 switch (slots) { 2121 switch (slots) {
2119 case 4: 2122 case 4: