diff options
author | Mark Brown <broonie@kernel.org> | 2018-01-18 14:55:37 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-01-18 14:55:37 +0300 |
commit | 078b3a0205cba12302d40ce04a24c0edaa6842ce (patch) | |
tree | 69d5b79691fd894866b89798329c42efc7c641b5 /sound/soc/soc-core.c | |
parent | 5f7a0ea9fe0e1874ff339ab42fdde89f0ccee411 (diff) | |
parent | 2ca69d73bc05a55edb95689d436ce87974a3162e (diff) | |
download | linux-078b3a0205cba12302d40ce04a24c0edaa6842ce.tar.xz |
Merge remote-tracking branch 'asoc/topic/rcar' into asoc-next
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 9b79c2199781..e018a2badfde 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1393,6 +1393,16 @@ static int soc_init_dai_link(struct snd_soc_card *card, return 0; } +void snd_soc_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); +} + /** * snd_soc_add_dai_link - Add a DAI link dynamically * @card: The ASoC card to which the DAI link is added |