ASoC: sprd: Add Spreadtrum audio compress offload support
authorBaolin Wang <baolin.wang@linaro.org>
Wed, 27 Mar 2019 11:47:03 +0000 (19:47 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 2 Apr 2019 05:57:03 +0000 (12:57 +0700)
commitcce1396936ef2b347d622b4d49718818eb32029d
tree0333bed943371092581cef52a50895c53d9efd1d
parentf661fa2804af6950d1b7f5ffa22f6a80dcf52958
ASoC: sprd: Add Spreadtrum audio compress offload support

We use 2-stage DMA mode to support Spreadtrum audio compress offload,
which means we use one DMA source channel to transfer data from IRAM
buffer to the DSP fifo to do decoding/encoding, once IRAM buffer is
empty by transferring done, another DMA destination channel will be
triggered automatically to start to transfer data from DDR buffer to
the IRAM buffer. This can reduce the AP subsystem wakeup times to save
power.

Co-developed-by: Yintang Ren <yintang.ren@unisoc.com>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sprd/Kconfig
sound/soc/sprd/Makefile
sound/soc/sprd/sprd-pcm-compress.c [new file with mode: 0644]
sound/soc/sprd/sprd-pcm-dma.c
sound/soc/sprd/sprd-pcm-dma.h