Skip to content

Commit

Permalink
ASoC: sprd: Add Spreadtrum audio compress offload support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Baolin Wang authored and Mark Brown committed Apr 2, 2019
1 parent f661fa2 commit cce1396
Show file tree
Hide file tree
Showing 5 changed files with 721 additions and 2 deletions.
1 change: 1 addition & 0 deletions sound/soc/sprd/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
config SND_SOC_SPRD
tristate "SoC Audio for the Spreadtrum SoC chips"
depends on ARCH_SPRD || COMPILE_TEST
select SND_SOC_COMPRESS
help
Say Y or M if you want to add support for codecs attached to
the Spreadtrum SoCs' Audio interfaces.
2 changes: 1 addition & 1 deletion sound/soc/sprd/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
# Spreadtrum Audio Support

obj-$(CONFIG_SND_SOC_SPRD) += sprd-pcm-dma.o
obj-$(CONFIG_SND_SOC_SPRD) += sprd-pcm-dma.o sprd-pcm-compress.o
Loading

0 comments on commit cce1396

Please sign in to comment.