ASoC: rsnd: don't use PDTA bit for 24bit on SSI
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 16 May 2017 01:51:41 +0000 (01:51 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 17 May 2017 09:49:45 +0000 (10:49 +0100)
commit90431eb49bff6d79814cbf0c96e13597ad53095c
tree7a2cfea7a451f35924a87020654943a2a5cd355c
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
ASoC: rsnd: don't use PDTA bit for 24bit on SSI

Current SSI uses PDTA bit which indicates data that Input/Output
data are Right-Aligned. But, 24bit sound should be Left-Aligned
in this HW. Because Linux is using Right-Aligned data, and HW uses
Left-Aligned data, current 24bit data is missing lower 8bit.
To fix this issue, this patch removes PDTA bit, and shift 8bit
in necessary module

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