]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 30 Jan 2020 15:24:37 +0000 (16:24 +0100)
commit86e7290ad8b8c97aa11102f550d779fd35e03a06
treef02fe6b157a59168994e86d6fd4e15904cd9986c
parente9882b2d4f5f69919b8558d51d508dd04426487e
ASoC: rsnd: fix DALIGN register for SSIU

BugLink: https://bugs.launchpad.net/bugs/1861085
commit ef8e14794308a428b194f8b06ad9ae06b43466e4 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
sound/soc/sh/rcar/core.c