[PATCH v5 15/21] ASoC: qdsp6: audioreach: add q6apm support
Mark Brown
broonie at kernel.org
Wed Sep 8 14:26:00 CEST 2021
On Wed, Sep 08, 2021 at 12:28:05PM +0100, Srinivas Kandagatla wrote:
> On 07/09/2021 16:04, Pierre-Louis Bossart wrote:
> > > > > + spin_lock(&apm->lock);
> > > > > + idr_alloc(&apm->graph_idr, graph, graph_id,
> > > > > + graph_id + 1, GFP_ATOMIC);
> > > >
> > > > does this need to be ATOMIC?
> > >
> > > We are inside spinlock.
> >
> > but this is not used in an interrupt handler or anything that isn't in a
> > process context, is it?
> >
> No, it is in process context only.
So why is it a spinlock then?
-------------- 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/20210908/0655c8b7/attachment-0001.sig>
More information about the Alsa-devel
mailing list