Commit 3831a5b8 authored by Ryan Lee's avatar Ryan Lee Committed by Mark Brown

ASoC: max98373: Added TDM off if parameters are all zeroes

Signed-off-by: default avatarRyan Lee <ryans.lee@maximintegrated.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent e1053262
...@@ -311,7 +311,10 @@ static int max98373_dai_tdm_slot(struct snd_soc_dai *dai, ...@@ -311,7 +311,10 @@ static int max98373_dai_tdm_slot(struct snd_soc_dai *dai,
unsigned int mask; unsigned int mask;
int x, slot_found; int x, slot_found;
max98373->tdm_mode = true; if (!tx_mask && !rx_mask && !slots && !slot_width)
max98373->tdm_mode = false;
else
max98373->tdm_mode = true;
/* BCLK configuration */ /* BCLK configuration */
bsel = max98373_get_bclk_sel(slots * slot_width); bsel = max98373_get_bclk_sel(slots * slot_width);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment