xref: /openbmc/linux/sound/soc/samsung/dma.h (revision 82e6fdd6)
1 /*
2  *  This program is free software; you can redistribute  it and/or modify it
3  *  under  the terms of  the GNU General  Public License as published by the
4  *  Free Software Foundation;  either version 2 of the  License, or (at your
5  *  option) any later version.
6  *
7  *  ALSA PCM interface for the Samsung SoC
8  */
9 
10 #ifndef _SAMSUNG_DMA_H
11 #define _SAMSUNG_DMA_H
12 
13 #include <sound/dmaengine_pcm.h>
14 
15 /*
16  * @tx, @rx arguments can be NULL if the DMA channel names are "tx", "rx",
17  * otherwise actual DMA channel names must be passed to this function.
18  */
19 int samsung_asoc_dma_platform_register(struct device *dev, dma_filter_fn filter,
20 				       const char *tx, const char *rx);
21 #endif /* _SAMSUNG_DMA_H */
22