6f4997f4e8ca8c9a38506712968cb508ebe9d949
[openwrt/staging/mkresin.git] /
1 From fd343b5141e1128ab893f5370d2a05e4f09830b1 Mon Sep 17 00:00:00 2001
2 From: Shengjiu Wang <shengjiu.wang@nxp.com>
3 Date: Tue, 23 Jan 2018 13:27:10 +0800
4 Subject: [PATCH] MLK-16224-2: ASoC: dmaengine_pcm: add fifo_num to
5 snd_dmaengine_dai_dma_data
6
7 In order to support multi-fifo sdma script, the audio driver need to send
8 the fifo number to dma driver through dma_slave_config, and the cpu_dai
9 driver should config fifo_num for the audio platform driver, then platform
10 driver can config fifo_num to dma.
11 So add new variable fifo_num for struct snd_dmaengine_dai_dma_data.
12
13 Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
14 Reviewed-by: Robin Gong<yibin.gong@nxp.com>
15 ---
16 include/sound/dmaengine_pcm.h | 1 +
17 1 file changed, 1 insertion(+)
18
19 --- a/include/sound/dmaengine_pcm.h
20 +++ b/include/sound/dmaengine_pcm.h
21 @@ -76,6 +76,7 @@ struct snd_dmaengine_dai_dma_data {
22 const char *chan_name;
23 unsigned int fifo_size;
24 unsigned int flags;
25 + unsigned int fifo_num;
26 };
27
28 void snd_dmaengine_pcm_set_config_from_dai_data(