[PATCH 2/2] ALSA: compress: Initialize mutex in snd_compress_new()
Mark Brown
broonie at kernel.org
Wed Jul 14 18:29:01 CEST 2021
On Wed, Jul 14, 2021 at 06:24:24PM +0200, Takashi Iwai wrote:
> Currently the snd_compr.lock mutex isn't initialized in the API
> functions although the lock is used many places in other code in
> compress offload API. It's because the object was expected to be
> initialized via snd_compress_register(), but this was never used by
> ASoC, which is the only user. Instead, ASoC initializes the mutex by
> itself, and this is error-prone.
Reviewed-by: Mark Brown <broonie at kernel.org>
-------------- 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/20210714/64e9b7a1/attachment.sig>
More information about the Alsa-devel
mailing list