summaryrefslogtreecommitdiff
path: root/sound/soc/sprd/sprd-pcm-dma.c
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@linaro.org>2019-03-27 19:47:03 +0800
committerMark Brown <broonie@kernel.org>2019-04-02 12:57:03 +0700
commitcce1396936ef2b347d622b4d49718818eb32029d (patch)
tree0333bed943371092581cef52a50895c53d9efd1d /sound/soc/sprd/sprd-pcm-dma.c
parentf661fa2804af6950d1b7f5ffa22f6a80dcf52958 (diff)
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>
Diffstat (limited to 'sound/soc/sprd/sprd-pcm-dma.c')
-rw-r--r--sound/soc/sprd/sprd-pcm-dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sprd/sprd-pcm-dma.c b/sound/soc/sprd/sprd-pcm-dma.c
index cbb27c4abeba..9be6d4b2bf74 100644
--- a/sound/soc/sprd/sprd-pcm-dma.c
+++ b/sound/soc/sprd/sprd-pcm-dma.c
@@ -13,7 +13,6 @@
#include "sprd-pcm-dma.h"
-#define DRV_NAME "sprd_pcm_dma"
#define SPRD_PCM_DMA_LINKLIST_SIZE 64
#define SPRD_PCM_DMA_BRUST_LEN 640
@@ -524,6 +523,7 @@ static void sprd_pcm_free(struct snd_pcm *pcm)
static const struct snd_soc_component_driver sprd_soc_component = {
.name = DRV_NAME,
.ops = &sprd_pcm_ops,
+ .compr_ops = &sprd_platform_compr_ops,
.pcm_new = sprd_pcm_new,
.pcm_free = sprd_pcm_free,
};