summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2018-01-23 13:27:10 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:30:18 +0800
commitd304be32d3fe26e623e89cdfa865ba7695a38b2f (patch)
tree6977e22d39bb09388b1590a3b87fc2d367aee526 /include
parent0d0a13551d75adaf8572de14dba384efe51b9f93 (diff)
MLK-16224-2: ASoC: dmaengine_pcm: add fifo_num to snd_dmaengine_dai_dma_data
In order to support multi-fifo sdma script, the audio driver need to send the fifo number to dma driver through dma_slave_config, and the cpu_dai driver should config fifo_num for the audio platform driver, then platform driver can config fifo_num to dma. So add new variable fifo_num for struct snd_dmaengine_dai_dma_data. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Robin Gong<yibin.gong@nxp.com>
Diffstat (limited to 'include')
-rw-r--r--include/sound/dmaengine_pcm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/dmaengine_pcm.h b/include/sound/dmaengine_pcm.h
index 57eadbe0b4ef..267192c22e6a 100644
--- a/include/sound/dmaengine_pcm.h
+++ b/include/sound/dmaengine_pcm.h
@@ -86,6 +86,7 @@ struct snd_dmaengine_dai_dma_data {
const char *chan_name;
unsigned int fifo_size;
unsigned int flags;
+ unsigned int fifo_num;
bool (*check_xrun)(struct snd_pcm_substream *substream);
void (*device_reset)(struct snd_pcm_substream *substream, bool stop);
};