Message ID | 20210302003125.1178419-2-pierre-louis.bossart@linux.intel.com |
---|---|
State | Accepted |
Commit | c7929b15b6e926c7150d9ec64844aceecf8a7a4a |
Headers | show |
Series | ALSA/ASoC/SOF/SoundWire: fix Kconfig issues | expand |
diff --git a/include/sound/soc-acpi.h b/include/sound/soc-acpi.h index 9a43c44dcbbb..c45075024c30 100644 --- a/include/sound/soc-acpi.h +++ b/include/sound/soc-acpi.h @@ -174,7 +174,7 @@ struct snd_soc_acpi_codecs { 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"); + !strncmp(dev->parent->driver->name, "sof-audio-acpi", strlen("sof-audio-acpi")); } #endif