From 9360612b8598db755c6af473e258cdf0efce2ee9 Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Fri, 25 Oct 2019 19:55:40 +0800 Subject: ASoC: fsl_audmix: Add spin lock to protect tdms When two stream start to run, the trigger function may be called by two substream in same time, that the priv->tdms may be updated wrongly Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_audmix.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sound/soc/fsl/fsl_audmix.h') diff --git a/sound/soc/fsl/fsl_audmix.h b/sound/soc/fsl/fsl_audmix.h index 7812ffec45c5..479f05695d53 100644 --- a/sound/soc/fsl/fsl_audmix.h +++ b/sound/soc/fsl/fsl_audmix.h @@ -96,6 +96,7 @@ struct fsl_audmix { struct platform_device *pdev; struct regmap *regmap; struct clk *ipg_clk; + spinlock_t lock; /* Protect tdms */ u8 tdms; }; -- cgit v1.2.3