Merge branch 'exec-for-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiede...
[linux-2.6-microblaze.git] / include / sound / soc-acpi.h
index b16a844..9a43c44 100644 (file)
@@ -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