aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDong Aisheng <b29396@freescale.com>2011-07-27 11:27:55 +0800
committerEric Miao <eric.miao@canonical.com>2011-11-10 07:38:19 +0800
commitf34df9c67f1814b56cc45c1492ec3055538999fb (patch)
treea9474f67885d0b2caa17692f9b18d0a56fd81fb3 /include
parentcb2730a0ac51a97769f20705cb3d566443581319 (diff)
ENGR00153740-1 asrc: update to use new SDMA API
Only support one pair of buffer for rx and tx per time. Signed-off-by: Dong Aisheng <b29396@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mxc_asrc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/mxc_asrc.h b/include/linux/mxc_asrc.h
index 13a4850fa62..a8d8b8bc474 100644
--- a/include/linux/mxc_asrc.h
+++ b/include/linux/mxc_asrc.h
@@ -37,6 +37,7 @@
#define ASRC_STATUS _IOW(ASRC_IOC_MAGIC, 10, struct asrc_status_flags)
#define ASRC_FLUSH _IOW(ASRC_IOC_MAGIC, 11, enum asrc_pair_index)
+
enum asrc_pair_index {
ASRC_PAIR_A,
ASRC_PAIR_B,
@@ -182,8 +183,8 @@ struct asrc_pair_params {
unsigned int output_counter;
unsigned int input_queue_empty;
unsigned int output_queue_empty;
- unsigned int input_dma_channel;
- unsigned int output_dma_channel;
+ struct dma_chan *input_dma_channel;
+ struct dma_chan *output_dma_channel;
unsigned int input_buffer_size;
unsigned int output_buffer_size;
unsigned int buffer_num;