2019-10-22 17:43:12 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
/*
|
|
|
|
* intel-dsp-config.h - Intel DSP config
|
|
|
|
*
|
|
|
|
* Copyright (c) 2019 Jaroslav Kysela <perex@perex.cz>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INTEL_DSP_CONFIG_H__
|
|
|
|
#define __INTEL_DSP_CONFIG_H__
|
|
|
|
|
|
|
|
struct pci_dev;
|
|
|
|
|
|
|
|
enum {
|
|
|
|
SND_INTEL_DSP_DRIVER_ANY = 0,
|
|
|
|
SND_INTEL_DSP_DRIVER_LEGACY,
|
|
|
|
SND_INTEL_DSP_DRIVER_SST,
|
|
|
|
SND_INTEL_DSP_DRIVER_SOF,
|
2022-05-16 10:11:13 +00:00
|
|
|
SND_INTEL_DSP_DRIVER_AVS,
|
|
|
|
SND_INTEL_DSP_DRIVER_LAST = SND_INTEL_DSP_DRIVER_AVS
|
2019-10-22 17:43:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#if IS_ENABLED(CONFIG_SND_INTEL_DSP_CONFIG)
|
|
|
|
|
|
|
|
int snd_intel_dsp_driver_probe(struct pci_dev *pci);
|
2020-11-12 22:38:14 +00:00
|
|
|
int snd_intel_acpi_dsp_driver_probe(struct device *dev, const u8 acpi_hid[ACPI_ID_LEN]);
|
2019-10-22 17:43:12 +00:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
static inline int snd_intel_dsp_driver_probe(struct pci_dev *pci)
|
|
|
|
{
|
|
|
|
return SND_INTEL_DSP_DRIVER_ANY;
|
|
|
|
}
|
|
|
|
|
2020-11-12 22:38:14 +00:00
|
|
|
static inline
|
|
|
|
int snd_intel_acpi_dsp_driver_probe(struct device *dev, const u8 acpi_hid[ACPI_ID_LEN])
|
|
|
|
{
|
|
|
|
return SND_INTEL_DSP_DRIVER_ANY;
|
|
|
|
}
|
|
|
|
|
2019-10-22 17:43:12 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|