Re: [alsa-devel] [PATCH V2] ASoC: fsl_audmix: Add spin lock to protect tdms

2019-11-11 Thread Daniel Baluta
On Mon, Nov 11, 2019 at 9:53 AM Shengjiu Wang wrote: > > Audmix support two substream, When two substream start > to run, the trigger function may be called by two substream > in same time, that the priv->tdms may be updated wrongly. > > The expected priv->tdms is 0x3, but sometimes the > result i

[PATCH V2] ASoC: fsl_audmix: Add spin lock to protect tdms

2019-11-10 Thread Shengjiu Wang
Audmix support two substream, When two substream start to run, the trigger function may be called by two substream in same time, that the priv->tdms may be updated wrongly. The expected priv->tdms is 0x3, but sometimes the result is 0x2, or 0x1. Fixes: be1df61cf06e ("ASoC: fsl: Add Audio Mixer CP