diff options
author | Shengjiu Wang <shengjiu.wang@nxp.com> | 2018-01-23 13:27:10 +0800 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | 5f74f8350417d7ad7ef5f7394d202c1308cc4e58 (patch) | |
tree | 8018b963d574a92f3c8db297043cb288087445da /include/sound | |
parent | a6092bc85f60c2d30f69c3c78fe72b850d46d350 (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/sound')
-rw-r--r-- | include/sound/dmaengine_pcm.h | 1 |
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); }; |