Skip to content

Commit

Permalink
ASoC: max98373: Added TDM off if parameters are all zeroes
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Lee <ryans.lee@maximintegrated.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Ryan Lee authored and Mark Brown committed Jan 10, 2018
1 parent e105326 commit 3831a5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sound/soc/codecs/max98373.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,10 @@ static int max98373_dai_tdm_slot(struct snd_soc_dai *dai,
unsigned int mask;
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 */
bsel = max98373_get_bclk_sel(slots * slot_width);
Expand Down

0 comments on commit 3831a5b

Please sign in to comment.