]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5598f760c79469538a49760d62e3480243c3b060
tree4d9f0f5563918ffdfeff0cf9d3617b338ba67273
parentb98e1440d1b15b1c4c6eb26449d390d5168ed4f0
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: a9fbad08b677f8 ("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