summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_asrc.h
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@freescale.com>2017-07-05 15:29:40 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:48:28 +0800
commit9fb7266cc7b7a505010902a430e02a1a75ad2775 (patch)
treed7f3dc77a60f929d5734addf23b421d8099b0ee1 /sound/soc/fsl/fsl_asrc.h
parentadd402988943c9755a90d60453b1c106c8617174 (diff)
MLK-13945-3: ASoC: fsl_asrc: support two asrc devices
In imx8qm, there is two asrc devices, so using global structure "miscdevice" will cause error. Each instance should have their own structure. Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_asrc.h')
-rw-r--r--sound/soc/fsl/fsl_asrc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_asrc.h b/sound/soc/fsl/fsl_asrc.h
index 8acc68af90c4..3dec3abc5fec 100644
--- a/sound/soc/fsl/fsl_asrc.h
+++ b/sound/soc/fsl/fsl_asrc.h
@@ -11,6 +11,7 @@
#define _FSL_ASRC_H
#include <uapi/linux/mxc_asrc.h>
+#include <linux/miscdevice.h>
#define IN 0
#define OUT 1
@@ -358,6 +359,7 @@ struct fsl_asrc {
spinlock_t lock;
struct fsl_asrc_pair *pair[ASRC_PAIR_MAX_NUM];
+ struct miscdevice asrc_miscdev;
unsigned int channel_bits;
unsigned int channel_avail;
unsigned int pair_streams;
@@ -366,6 +368,7 @@ struct fsl_asrc {
int asrc_width;
u32 regcache_cfg;
+ char name[20];
};
#define DRV_NAME "fsl-asrc-dai"