linux_dsm_epyc7002/sound/soc/sprd/sprd-pcm-dma.h
Baolin Wang 42fea318e1
ASoC: sprd: Add Spreadtrum audio DMA platfrom driver
The Spreadtrum DMA engine uses the link-list mode to support audio playback
or capture, thus this patch adds audio DMA platform support for CPU DAI to
trigger DMA link-list transfer.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-01-29 18:10:12 +00:00

16 lines
352 B
C

// SPDX-License-Identifier: GPL-2.0
#ifndef __SPRD_PCM_DMA_H
#define __SPRD_PCM_DMA_H
#define SPRD_PCM_CHANNEL_MAX 2
struct sprd_pcm_dma_params {
dma_addr_t dev_phys[SPRD_PCM_CHANNEL_MAX];
u32 datawidth[SPRD_PCM_CHANNEL_MAX];
u32 fragment_len[SPRD_PCM_CHANNEL_MAX];
const char *chan_name[SPRD_PCM_CHANNEL_MAX];
};
#endif /* __SPRD_PCM_DMA_H */