ASoC: mmp-sspa: Add support for soc-generic-dmaengine-pcm
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 11 May 2020 21:01:28 +0000 (23:01 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 12 May 2020 16:14:39 +0000 (17:14 +0100)
commit724da05378ba7af6e273451a2c3f565a3315a9db
treedff91d965fa296793ddb23375b36851b63dd2fcd
parentc9aeda1c94973f835b3d1b6c785a414caaf935c3
ASoC: mmp-sspa: Add support for soc-generic-dmaengine-pcm

This makes the driver usable with the mmp_tdma drier via
soc-generic-dmaengine-pcm. This is conditionalized on DT node (support
for DT is added by a later patch).

A custom mmap callback that creates a NC mapping is used instead of the
default WC one, because with write-combining some bytes don't seem to
make it through for reasons unknown to me.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Link: https://lore.kernel.org/r/20200511210134.1224532-6-lkundrak@v3.sk
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/pxa/mmp-sspa.c