summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-utils.c
diff options
context:
space:
mode:
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>2014-01-08 11:40:18 +0100
committerMark Brown <broonie@linaro.org>2014-01-08 13:07:13 +0100
commitbece9e957cbfb37f12488b24166364307e39f5b0 (patch)
tree241393c87b1b049ea358546de03bd9591e2dff30 /sound/soc/soc-utils.c
parentASoC: dapm: update DPCM runtime when mixer/mux changes (diff)
downloadlinux-bece9e957cbfb37f12488b24166364307e39f5b0.tar.xz
linux-bece9e957cbfb37f12488b24166364307e39f5b0.zip
ASoC: utils: Add internal call to determine if DAI is dummy.
Provide a quick way to tell if a DAI is a dummy DAI or a regular DAI. This is for internal DAPM usage only and is used to determine whether to insert a DAI link connection into the DAPM graph. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/soc-utils.c')
-rw-r--r--sound/soc/soc-utils.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c
index 5e633659c1b3..d14bdb3c52df 100644
--- a/sound/soc/soc-utils.c
+++ b/sound/soc/soc-utils.c
@@ -123,6 +123,13 @@ static struct snd_soc_dai_driver dummy_dai = {
},
};
+int snd_soc_dai_is_dummy(struct snd_soc_dai *dai)
+{
+ if (dai->driver == &dummy_dai)
+ return 1;
+ return 0;
+}
+
static int snd_soc_dummy_probe(struct platform_device *pdev)
{
int ret;