diff options
author | Mark Brown <broonie@kernel.org> | 2021-04-23 20:01:02 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-04-23 20:01:02 +0200 |
commit | ffc9841d5200a484ea0ecc645157b4d7b873f3a6 (patch) | |
tree | c5216df939963608cefcd94bdf2934a2b880b54d /sound/soc/soc-utils.c | |
parent | Merge remote-tracking branch 'asoc/for-5.12' into asoc-linus (diff) | |
parent | ASoC: simple-card: Fix breakage on kontron-sl28-var3-ads2 (diff) | |
download | linux-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.c | 6 |
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; |