]> git.baikalelectronics.ru Git - kernel.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)
commit0e248d6eaf3af6e4e4f61f16b29859b28ec54856
treea34bd92ab6e2e797fbe1452c0e8ebb72dd711148
parentd540cb82fa755c3c94f2d8d792c51adec1948571
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