From 9fb7266cc7b7a505010902a430e02a1a75ad2775 Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Wed, 5 Jul 2017 15:29:40 +0800 Subject: 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 Reviewed-by: Daniel Baluta --- sound/soc/fsl/fsl_asrc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sound/soc/fsl/fsl_asrc.h') 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 +#include #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" -- cgit v1.2.3