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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

					Jaroslav

-- 
Jaroslav Kysela <perex@xxxxxxxx>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux