ASoC: rsnd: use 32bit TDM width as default

commit fb2815f44a9e ("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>
This commit is contained in:
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

View File

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