[PATCH 5/7] ALSA: control: Track in-flight control read/write/tlv accesses

Takashi Iwai tiwai at suse.de
Tue May 18 20:54:55 CEST 2021


On Tue, 18 May 2021 20:01:33 +0200,
Jaroslav Kysela wrote:
> 
> Dne 18. 05. 21 v 18:51 Takashi Iwai napsal(a):
> 
> > +/**
> > + * snd_power_sync_ref - wait until the card power_ref is freed
> > + * @card: sound card object
> > + *
> > + * This function is used to synchronize with the pending power_ref being
> > + * released.
> > + */
> > +void snd_power_sync_ref(struct snd_card *card)
> > +{
> > +	wait_event(card->power_ref_sleep, !atomic_read(&card->power_ref));
> > +}
> > +EXPORT_SYMBOL_GPL(snd_power_sync_ref);
> 
> Perhaps, this function can be inline, too?

I thought of that, too.  Then maybe core.h needs more inclusion, but
it might be worth, yeah.


thanks,

Takashi


More information about the Alsa-devel mailing list