aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Lee <RyanS.Lee@maximintegrated.com>2018-01-10 00:02:00 -0500
committerMark Brown <broonie@kernel.org>2018-01-10 05:26:23 -0500
commit3831a5b87ff87a31dba2f212bcecd4f2b8c7c6d4 (patch)
tree7053458d8b0ef1a511bdf04f2ad415d8ef8b30a5
parente1053262cf318a2bb4a0e1e9c402a3033c669381 (diff)
ASoC: max98373: Added TDM off if parameters are all zeroes
Signed-off-by: Ryan Lee <ryans.lee@maximintegrated.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/max98373.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c
index cb389571b253..ad17bb1fee7b 100644
--- a/sound/soc/codecs/max98373.c
+++ b/sound/soc/codecs/max98373.c
@@ -311,7 +311,10 @@ static int max98373_dai_tdm_slot(struct snd_soc_dai *dai,
311 unsigned int mask; 311 unsigned int mask;
312 int x, slot_found; 312 int x, slot_found;
313 313
314 max98373->tdm_mode = true; 314 if (!tx_mask && !rx_mask && !slots && !slot_width)
315 max98373->tdm_mode = false;
316 else
317 max98373->tdm_mode = true;
315 318
316 /* BCLK configuration */ 319 /* BCLK configuration */
317 bsel = max98373_get_bclk_sel(slots * slot_width); 320 bsel = max98373_get_bclk_sel(slots * slot_width);