#include <linux/acpi.h>
#include <linux/bits.h>
#include <linux/dmi.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/soundwire/sdw.h>
#include <linux/soundwire/sdw_intel.h>
#include <sound/core.h>
#include <sound/intel-dsp-config.h>
#include <sound/intel-nhlt.h>
#include <sound/soc-acpi.h>
#include <acpi/nhlt.h>
static int dsp_driver;
module_param(dsp_driver, int, 0444);
MODULE_PARM_DESC(…) …;
#define FLAG_SST …
#define FLAG_SOF …
#define FLAG_SST_ONLY_IF_DMIC …
#define FLAG_SOF_ONLY_IF_DMIC …
#define FLAG_SOF_ONLY_IF_SOUNDWIRE …
#define FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE …
struct config_entry { … };
static const struct snd_soc_acpi_codecs __maybe_unused essx_83x6 = …;
static const struct config_entry config_table[] = …;
static const struct config_entry *snd_intel_dsp_find_config
(struct pci_dev *pci, const struct config_entry *table, u32 len)
{ … }
static int snd_intel_dsp_check_dmic(struct pci_dev *pci)
{ … }
#if IS_ENABLED(CONFIG_SND_SOC_SOF_INTEL_SOUNDWIRE)
static int snd_intel_dsp_check_soundwire(struct pci_dev *pci)
{ … }
#else
static int snd_intel_dsp_check_soundwire(struct pci_dev *pci)
{
return 0;
}
#endif
int snd_intel_dsp_driver_probe(struct pci_dev *pci)
{ … }
EXPORT_SYMBOL_GPL(…);
#if IS_ENABLED(CONFIG_SND_INTEL_BYT_PREFER_SOF) || \
!IS_ENABLED(CONFIG_SND_SST_ATOM_HIFI2_PLATFORM_ACPI)
#define FLAG_SST_OR_SOF_BYT …
#else
#define FLAG_SST_OR_SOF_BYT …
#endif
static const struct config_entry acpi_config_table[] = …;
static const struct config_entry *snd_intel_acpi_dsp_find_config(const u8 acpi_hid[ACPI_ID_LEN],
const struct config_entry *table,
u32 len)
{ … }
int snd_intel_acpi_dsp_driver_probe(struct device *dev, const u8 acpi_hid[ACPI_ID_LEN])
{ … }
EXPORT_SYMBOL_GPL(…);
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_IMPORT_NS(…);