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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux