0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #include <linux/module.h>
0012 #include <linux/pci.h>
0013 #include <sound/soc-acpi.h>
0014 #include <sound/soc-acpi-intel-match.h>
0015 #include <sound/sof.h>
0016 #include "../ops.h"
0017 #include "../sof-pci-dev.h"
0018
0019
0020 #include "hda.h"
0021 #include "mtl.h"
0022
0023 static const struct sof_dev_desc mtl_desc = {
0024 .use_acpi_target_states = true,
0025 .machines = snd_soc_acpi_intel_mtl_machines,
0026 .alt_machines = snd_soc_acpi_intel_mtl_sdw_machines,
0027 .resindex_lpe_base = 0,
0028 .resindex_pcicfg_base = -1,
0029 .resindex_imr_base = -1,
0030 .irqindex_host_ipc = -1,
0031 .chip_info = &mtl_chip_info,
0032 .ipc_supported_mask = BIT(SOF_INTEL_IPC4),
0033 .ipc_default = SOF_INTEL_IPC4,
0034 .default_fw_path = {
0035 [SOF_INTEL_IPC4] = "intel/sof-ipc4/mtl",
0036 },
0037 .default_tplg_path = {
0038 [SOF_INTEL_IPC4] = "intel/sof-ace-tplg",
0039 },
0040 .default_fw_filename = {
0041 [SOF_INTEL_IPC4] = "dsp_basefw.bin",
0042 },
0043 .nocodec_tplg_filename = "sof-mtl-nocodec.tplg",
0044 .ops = &sof_mtl_ops,
0045 .ops_init = sof_mtl_ops_init,
0046 };
0047
0048
0049 static const struct pci_device_id sof_pci_ids[] = {
0050 { PCI_DEVICE(0x8086, 0x7E28),
0051 .driver_data = (unsigned long)&mtl_desc},
0052 { 0, }
0053 };
0054 MODULE_DEVICE_TABLE(pci, sof_pci_ids);
0055
0056
0057 static struct pci_driver snd_sof_pci_intel_mtl_driver = {
0058 .name = "sof-audio-pci-intel-mtl",
0059 .id_table = sof_pci_ids,
0060 .probe = hda_pci_intel_probe,
0061 .remove = sof_pci_remove,
0062 .shutdown = sof_pci_shutdown,
0063 .driver = {
0064 .pm = &sof_pci_pm,
0065 },
0066 };
0067 module_pci_driver(snd_sof_pci_intel_mtl_driver);
0068
0069 MODULE_LICENSE("Dual BSD/GPL");
0070 MODULE_IMPORT_NS(SND_SOC_SOF_INTEL_HDA_COMMON);
0071 MODULE_IMPORT_NS(SND_SOC_SOF_PCI_DEV);