]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: rsnd: dma: set bus width to data width for monaural data
authorJiada Wang <jiada_wang@mentor.com>
Tue, 22 Oct 2019 18:55:18 +0000 (20:55 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 23 Oct 2019 16:44:53 +0000 (17:44 +0100)
commitd4d9360bf702890b5d3b1b62d8619a2690dd3278
treea34bd92ab6e2e797fbe1452c0e8ebb72dd711148
parent2b544dd7b43b19fb55ea4fbb3e30b60eb20b7828
ASoC: rsnd: dma: set bus width to data width for monaural data

According to R-Car3 HW manual 40.3.3 (Data Format on Audio Local Bus),
in case of monaural data writing or reading through Audio-DMAC,
it's always in Left Justified format, so both src and dst
DMA Bus width should be equal to physical data width.

Therefore set src and dst's DMA bus width to:
 - [monaural case] data width
 - [non-monaural case] 32bits (as prior applying the patch)

Cc: Andrew Gabbasov <andrew_gabbasov@mentor.com>
Cc: Timo Wischer <twischer@de.adit-jv.com>
Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Link: https://lore.kernel.org/r/20191022185518.12838-1-erosca@de.adit-jv.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/dma.c