|
@@ -12,10 +12,19 @@
|
|
*
|
|
*
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
+#include <linux/kconfig.h>
|
|
|
|
+#include <linux/stddef.h>
|
|
#include <linux/acpi.h>
|
|
#include <linux/acpi.h>
|
|
|
|
|
|
/* translation fron HID to I2C name, needed for DAI codec_name */
|
|
/* translation fron HID to I2C name, needed for DAI codec_name */
|
|
|
|
+#if IS_ENABLED(CONFIG_ACPI)
|
|
const char *sst_acpi_find_name_from_hid(const u8 hid[ACPI_ID_LEN]);
|
|
const char *sst_acpi_find_name_from_hid(const u8 hid[ACPI_ID_LEN]);
|
|
|
|
+#else
|
|
|
|
+inline const char *sst_acpi_find_name_from_hid(const u8 hid[ACPI_ID_LEN])
|
|
|
|
+{
|
|
|
|
+ return NULL;
|
|
|
|
+}
|
|
|
|
+#endif
|
|
|
|
|
|
/* acpi match */
|
|
/* acpi match */
|
|
struct sst_acpi_mach *sst_acpi_find_machine(struct sst_acpi_mach *machines);
|
|
struct sst_acpi_mach *sst_acpi_find_machine(struct sst_acpi_mach *machines);
|