OSDN Git Service

ASoC: rsnd: more clear rsnd_get_dalign() for DALIGN
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 8 Dec 2017 06:23:11 +0000 (06:23 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 8 Dec 2017 18:53:51 +0000 (18:53 +0000)
commita914e44693d41ba43604afa8c435c98a6d2c7cb1
treec09b88575574082689ff9155122a13dd2eb2ebd4
parent2e2d53da81af6b2222c6b4e025a5d01b37b4449b
ASoC: rsnd: more clear rsnd_get_dalign() for DALIGN

On Renesas sound device, DALIGN which exchanges channel position
is needed because SW and HW are using defferent data order if
16bit data. It is not needed when 24bit data.
rsnd_get_dalign() returns necessary value, but it was confusable
code. This patch makes it more simple.

Tested-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c