author: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> 2020-11-12 16:38:15 -0600
committer: Mark Brown <broonie@kernel.org> 2020-11-19 18:24:36 +0000
commit: 644eebdbbf1154c995d6319c133d7d5b898c5ed2
parent: b5682305297db24b456e55ba209574cb8f9318f9
Commit Summary:
Diffstat:
1 file changed, 6 insertions, 0 deletions
diff --git a/include/sound/soc-acpi.h b/include/sound/soc-acpi.h
index b16a844d16ef..9a43c44dcbbb 100644
--- a/include/sound/soc-acpi.h
+++ b/include/sound/soc-acpi.h
@@ -171,4 +171,10 @@ struct snd_soc_acpi_codecs {
u8 codecs[SND_SOC_ACPI_MAX_CODECS][ACPI_ID_LEN];
};
+static inline bool snd_soc_acpi_sof_parent(struct device *dev)
+{
+ return dev->parent && dev->parent->driver && dev->parent->driver->name &&
+ !strcmp(dev->parent->driver->name, "sof-audio-acpi");
+}
+
#endif