summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_asrc_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/fsl/fsl_asrc_common.h')
-rw-r--r--sound/soc/fsl/fsl_asrc_common.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/sound/soc/fsl/fsl_asrc_common.h b/sound/soc/fsl/fsl_asrc_common.h
index 7e1c13ca37f1..da2e1aec0c33 100644
--- a/sound/soc/fsl/fsl_asrc_common.h
+++ b/sound/soc/fsl/fsl_asrc_common.h
@@ -7,18 +7,12 @@
#ifndef _FSL_ASRC_COMMON_H
#define _FSL_ASRC_COMMON_H
+#include <linux/miscdevice.h>
+#include <uapi/linux/mxc_asrc.h>
/* directions */
#define IN 0
#define OUT 1
-enum asrc_pair_index {
- ASRC_INVALID_PAIR = -1,
- ASRC_PAIR_A = 0,
- ASRC_PAIR_B = 1,
- ASRC_PAIR_C = 2,
- ASRC_PAIR_D = 3,
-};
-
#define PAIR_CTX_NUM 0x4
/**
@@ -49,6 +43,7 @@ struct fsl_asrc_pair {
bool req_dma_chan;
void *private;
+ void *private_m2m;
};
/**
@@ -86,6 +81,7 @@ struct fsl_asrc {
struct clk *spba_clk;
spinlock_t lock; /* spin lock for resource protection */
+ struct miscdevice asrc_miscdev;
struct fsl_asrc_pair *pair[PAIR_CTX_NUM];
unsigned int channel_avail;