Sylwester Nawrocki | df504ed | 2019-04-19 12:21:38 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Ben Dooks | c0f41bb | 2007-02-14 13:20:03 +0100 | [diff] [blame] | 2 | /* |
Sylwester Nawrocki | df504ed | 2019-04-19 12:21:38 +0200 | [diff] [blame] | 3 | * ALSA PCM interface for the Samsung SoC |
Ben Dooks | c0f41bb | 2007-02-14 13:20:03 +0100 | [diff] [blame] | 4 | */ |
| 5 | |
Sylwester Nawrocki | 9b08f30 | 2016-08-04 11:30:32 +0200 | [diff] [blame] | 6 | #ifndef _SAMSUNG_DMA_H |
| 7 | #define _SAMSUNG_DMA_H |
Ben Dooks | c0f41bb | 2007-02-14 13:20:03 +0100 | [diff] [blame] | 8 | |
Mark Brown | d37bdf7 | 2013-12-05 14:14:52 +0000 | [diff] [blame] | 9 | #include <sound/dmaengine_pcm.h> |
| 10 | |
Sylwester Nawrocki | 42a74e7 | 2016-07-21 20:03:50 +0200 | [diff] [blame] | 11 | /* |
| 12 | * @tx, @rx arguments can be NULL if the DMA channel names are "tx", "rx", |
| 13 | * otherwise actual DMA channel names must be passed to this function. |
| 14 | */ |
| 15 | int samsung_asoc_dma_platform_register(struct device *dev, dma_filter_fn filter, |
Sylwester Nawrocki | 96f06cd | 2019-02-07 18:00:11 +0100 | [diff] [blame] | 16 | const char *tx, const char *rx, |
| 17 | struct device *dma_dev); |
Sylwester Nawrocki | 9b08f30 | 2016-08-04 11:30:32 +0200 | [diff] [blame] | 18 | #endif /* _SAMSUNG_DMA_H */ |