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>
This commit is contained in:
parent
e1053262cf
commit
3831a5b87f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue