[PATCH v2] ASoC: amd: acp: Initialize list to store acp_stream during pcm_open

Mark Brown broonie at kernel.org
Thu Jul 28 13:14:19 CEST 2022


On Thu, Jul 28, 2022 at 07:52:25AM +0000, Prasad, Prasad wrote:

> linked to multiple pcm device as we will have same dai->driver id
> 
> or array index for multiple pcm open. Initialize new linked list
> 
> stream_list to store opened pcm stream info dynamically.
> 
> 
> 
> If an IRQ handler refers to the linked list, make sure that no list
> 
> change will happen concurrently during the IRQ handling.  It seems
> 
> that you have no protection for it yet.
> Yes, linked list may changes concurrently during IRQ handling, we will use spin locks in the next version of patch.

Please fix your mail client to clearly identify quoted text, it's very
hard to read your mails since (among other things) it's hard to tell
what text you added.
-------------- 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/20220728/93a07217/attachment.sig>


More information about the Alsa-devel mailing list