1
0
Fork 0

ASoC: rsnd: use 32bit TDM width as default

commit fb2815f44a ("ASoC: rsnd: add support for 16/24 bit slot widths")
added TDM width check, and return error if it was not 16/24/32 bit.
But it is too strict. This patch uses 32bit same as default.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
hifive-unleashed-5.1
Kuninori Morimoto 2018-10-10 02:20:42 +00:00 committed by Mark Brown
parent 9641faa2db
commit 82ab7e9a4d
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
1 changed files with 2 additions and 2 deletions

View File

@ -744,8 +744,8 @@ static int rsnd_soc_set_dai_tdm_slot(struct snd_soc_dai *dai,
case 32:
break;
default:
dev_err(dev, "unsupported slot width value: %d\n", slot_width);
return -EINVAL;
/* use default */
slot_width = 32;
}
switch (slots) {