[alsa-devel] [PATCH 2/3] ASoC: add snd_soc_card_disconnect_sync()

Mark Brown broonie at kernel.org
Wed Oct 11 10:42:52 CEST 2017


On Wed, Oct 11, 2017 at 06:37:06AM +0000, Kuninori Morimoto wrote:

> +void snd_soc_card_disconnect_sync(struct device *dev)
> +{
> +	struct snd_soc_component *component = snd_soc_lookup_component(dev, NULL);
> +
> +	if (!component || !component->card)
> +		return;
> +
> +	snd_card_disconnect_sync(component->card->snd_card);

Is this the right name for ASoC or should it just be
snd_soc_disconnect_sync()?  It'll work for any device that's in a card.
-------------- 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/20171011/92d469a4/attachment.sig>


More information about the Alsa-devel mailing list