2007-02-14 13:20:03 +01:00
|
|
|
/*
|
2010-11-22 07:35:57 +01:00
|
|
|
* dma.h --
|
2007-02-14 13:20:03 +01:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation; either version 2 of the License, or (at your
|
|
|
|
* option) any later version.
|
|
|
|
*
|
2011-09-02 02:44:43 +02:00
|
|
|
* ALSA PCM interface for the Samsung SoC
|
2007-02-14 13:20:03 +01:00
|
|
|
*/
|
|
|
|
|
2009-11-17 08:53:23 +01:00
|
|
|
#ifndef _S3C_AUDIO_H
|
|
|
|
#define _S3C_AUDIO_H
|
2007-02-14 13:20:03 +01:00
|
|
|
|
2013-12-05 15:14:52 +01:00
|
|
|
#include <sound/dmaengine_pcm.h>
|
2015-11-18 22:31:11 +01:00
|
|
|
#include <linux/dmaengine.h>
|
2013-12-05 15:14:52 +01:00
|
|
|
|
2009-11-17 08:53:23 +01:00
|
|
|
struct s3c_dma_params {
|
2015-11-18 15:25:23 +01:00
|
|
|
void *slave; /* Channel ID */
|
2007-02-14 13:20:03 +01:00
|
|
|
dma_addr_t dma_addr;
|
2007-04-17 12:35:18 +02:00
|
|
|
int dma_size; /* Size of the DMA transfer */
|
2013-01-18 12:47:01 +01:00
|
|
|
char *ch_name;
|
2013-12-05 15:14:52 +01:00
|
|
|
struct snd_dmaengine_dai_dma_data dma_data;
|
2007-02-14 13:20:03 +01:00
|
|
|
};
|
|
|
|
|
2013-10-19 16:23:15 +02:00
|
|
|
void samsung_asoc_init_dma_data(struct snd_soc_dai *dai,
|
|
|
|
struct s3c_dma_params *playback,
|
|
|
|
struct s3c_dma_params *capture);
|
2016-07-21 20:03:50 +02:00
|
|
|
/*
|
|
|
|
* @tx, @rx arguments can be NULL if the DMA channel names are "tx", "rx",
|
|
|
|
* otherwise actual DMA channel names must be passed to this function.
|
|
|
|
*/
|
|
|
|
int samsung_asoc_dma_platform_register(struct device *dev, dma_filter_fn filter,
|
|
|
|
const char *tx, const char *rx);
|
2007-02-14 13:20:03 +01:00
|
|
|
#endif
|