ASoC: rsnd: use 32bit TDM width as default
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 10 Oct 2018 02:20:42 +0000 (02:20 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 10 Oct 2018 12:28:05 +0000 (13:28 +0100)
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>
sound/soc/sh/rcar/core.c

index 40d7dc4f7839bd4d72fdafde1f17228ef9d1062f..f930f51b686fc95fd78c973576548582b67bb5aa 100644 (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) {