summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2018-01-12 13:28:52 +0100
committerMark Brown <broonie@kernel.org>2018-01-12 13:28:52 +0100
commit84d306237bbe1af02ee782a54347752c75b97ca6 (patch)
treefaa5db0797ebdf9db4acfbc8ad5d55931b3d5739 /sound/soc/soc-core.c
parentMerge remote-tracking branch 'asoc/topic/qcom' into asoc-next (diff)
parentASoC: rcar: tidyup simple-card example for CPU node (diff)
downloadlinux-84d306237bbe1af02ee782a54347752c75b97ca6.tar.xz
linux-84d306237bbe1af02ee782a54347752c75b97ca6.zip
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.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index b9ca939fd05c..724b35671aa6 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1392,6 +1392,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