summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2018-10-10 02:20:42 +0000
committerMark Brown <broonie@kernel.org>2018-10-10 13:28:05 +0100
commit82ab7e9a4d3fcec27f745be04063e17da1881dda (patch)
tree51d06cf0fa18f37c1033e70302d7b4bbb8fb5103 /sound
parent9641faa2db7e856f50a6d1169e1b9f01e7fcb2b0 (diff)
downloadblackbird-obmc-linux-82ab7e9a4d3fcec27f745be04063e17da1881dda.tar.gz
blackbird-obmc-linux-82ab7e9a4d3fcec27f745be04063e17da1881dda.zip
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/sh/rcar/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 40d7dc4f7839..f930f51b686f 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -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) {
OpenPOWER on IntegriCloud