summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-utils.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2021-04-23 20:01:02 +0200
committerMark Brown <broonie@kernel.org>2021-04-23 20:01:02 +0200
commitffc9841d5200a484ea0ecc645157b4d7b873f3a6 (patch)
treec5216df939963608cefcd94bdf2934a2b880b54d /sound/soc/soc-utils.c
parentMerge remote-tracking branch 'asoc/for-5.12' into asoc-linus (diff)
parentASoC: simple-card: Fix breakage on kontron-sl28-var3-ads2 (diff)
downloadlinux-ffc9841d5200a484ea0ecc645157b4d7b873f3a6.tar.xz
linux-ffc9841d5200a484ea0ecc645157b4d7b873f3a6.zip
Merge remote-tracking branch 'asoc/for-5.13' into asoc-next
Diffstat (limited to 'sound/soc/soc-utils.c')
-rw-r--r--sound/soc/soc-utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c
index f27f94ca064b..98383fd76224 100644
--- a/sound/soc/soc-utils.c
+++ b/sound/soc/soc-utils.c
@@ -131,6 +131,12 @@ int snd_soc_dai_is_dummy(struct snd_soc_dai *dai)
return 0;
}
+int snd_soc_component_is_dummy(struct snd_soc_component *component)
+{
+ return ((component->driver == &dummy_platform) ||
+ (component->driver == &dummy_codec));
+}
+
static int snd_soc_dummy_probe(struct platform_device *pdev)
{
int ret;