[alsa-devel] [PATCH] ASoC: ti: davinci-mcasp: Protect hw_params callback against race

Mark Brown broonie at kernel.org
Mon Aug 12 13:13:33 CEST 2019


On Mon, Aug 12, 2019 at 12:53:04PM +0300, Peter Ujfalusi wrote:
> If the playback and capture of the same McASP is connected to different
> dai link (non duplex PCM links, like with pcm3168a codec) then there is
> a high probability of race between the two direction leaving McASP in a
> confused state.
> 
> Protect the hw_params() with a mutex to make sure that this is not
> happening.

This feels like something we might want to consider moving up to the
core, though not every device is going to need it I guess it should be
safe to do there.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20190812/431979db/attachment.sig>


More information about the Alsa-devel mailing list