ASoC: rsnd: fix DALIGN register for SSIU
authorNilkanth Ahirrao <anilkanth@jp.adit-jv.com>
Thu, 21 Nov 2019 11:10:23 +0000 (12:10 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 22 Nov 2019 19:50:08 +0000 (19:50 +0000)
commitef8e14794308a428b194f8b06ad9ae06b43466e4
tree4d9f0f5563918ffdfeff0cf9d3617b338ba67273
parent0bb887709eb16bdc4b5baddd8337abf3de72917f
ASoC: rsnd: fix DALIGN register for SSIU

The current driver only sets 0x76543210 and 0x67452301 for DALIGN.
This doesn’t work well for TDM split and ex-split mode for all SSIU.
This patch programs the DALIGN registers based on the SSIU number.

Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Jiada Wang <jiada_wang@mentor.com>
Cc: Andrew Gabbasov <andrew_gabbasov@mentor.com>
Fixes: a914e44693d41b ("ASoC: rsnd: more clear rsnd_get_dalign() for DALIGN")
Signed-off-by: Nilkanth Ahirrao <anilkanth@jp.adit-jv.com>
Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/20191121111023.10976-1-erosca@de.adit-jv.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c