[PATCH v3 05/14] ASoC: rockchip: i2s: Fix concurrency between tx/rx

Mark Brown broonie at kernel.org
Thu Aug 26 14:52:06 CEST 2021


On Thu, Aug 26, 2021 at 12:01:51PM +0800, Sugar Zhang wrote:

> +/* tx/rx ctrl lock */
> +static DEFINE_SPINLOCK(lock);
> +

Why is this a global and not part of the driver data?  It's also not
clear to me why this is a spinlock and not a mutex.
-------------- 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/20210826/8b2f8fd2/attachment.sig>


More information about the Alsa-devel mailing list