blob: 7b5d4556e0fd4250654b92a364d2cd5ee73ae8dc [file] [log] [blame]
Sylwester Nawrockidf504ed2019-04-19 12:21:38 +02001/* SPDX-License-Identifier: GPL-2.0+ */
Ben Dooksc0f41bb2007-02-14 13:20:03 +01002/*
Sylwester Nawrockidf504ed2019-04-19 12:21:38 +02003 * ALSA PCM interface for the Samsung SoC
Ben Dooksc0f41bb2007-02-14 13:20:03 +01004 */
5
Sylwester Nawrocki9b08f302016-08-04 11:30:32 +02006#ifndef _SAMSUNG_DMA_H
7#define _SAMSUNG_DMA_H
Ben Dooksc0f41bb2007-02-14 13:20:03 +01008
Mark Brownd37bdf72013-12-05 14:14:52 +00009#include <sound/dmaengine_pcm.h>
10
Sylwester Nawrocki42a74e72016-07-21 20:03:50 +020011/*
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 */
15int samsung_asoc_dma_platform_register(struct device *dev, dma_filter_fn filter,
Sylwester Nawrocki96f06cd2019-02-07 18:00:11 +010016 const char *tx, const char *rx,
17 struct device *dma_dev);
Sylwester Nawrocki9b08f302016-08-04 11:30:32 +020018#endif /* _SAMSUNG_DMA_H */