diff options
author | Shengjiu Wang <shengjiu.wang@nxp.com> | 2019-10-25 19:55:40 +0800 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:49:46 +0800 |
commit | 9360612b8598db755c6af473e258cdf0efce2ee9 (patch) | |
tree | f5a234964eb540991a8d4924bd163d85c087f1a2 /sound/soc/fsl/fsl_audmix.h | |
parent | 219d54332a09e8d8741c1e1982f5eae56099de85 (diff) |
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 <shengjiu.wang@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_audmix.h')
-rw-r--r-- | sound/soc/fsl/fsl_audmix.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; }; |