Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) //
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3) // This file is provided under a dual BSD/GPLv2 license.  When using or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4) // redistributing this file, you may do so under either license.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5) //
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6) // Copyright(c) 2018 Intel Corporation. All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7) //
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) // Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) //
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) #include <linux/acpi.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) #include <linux/firmware.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) #include <linux/pm_runtime.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) #include <sound/soc-acpi.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) #include <sound/soc-acpi-intel-match.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) #include <sound/sof.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) #include "../intel/common/soc-intel-quirks.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) #include "ops.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) /* platform specific devices */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) #include "intel/shim.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) static char *fw_path;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) module_param(fw_path, charp, 0444);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) MODULE_PARM_DESC(fw_path, "alternate path for SOF firmware.");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) static char *tplg_path;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) module_param(tplg_path, charp, 0444);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) MODULE_PARM_DESC(tplg_path, "alternate path for SOF topology.");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) static int sof_acpi_debug;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) module_param_named(sof_acpi_debug, sof_acpi_debug, int, 0444);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) MODULE_PARM_DESC(sof_acpi_debug, "SOF ACPI debug options (0x0 all off)");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) #define SOF_ACPI_DISABLE_PM_RUNTIME BIT(0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) #if IS_ENABLED(CONFIG_ACPI) && IS_ENABLED(CONFIG_SND_SOC_SOF_BROADWELL)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) static const struct sof_dev_desc sof_acpi_broadwell_desc = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) 	.machines = snd_soc_acpi_intel_broadwell_machines,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) 	.resindex_lpe_base = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 	.resindex_pcicfg_base = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 	.resindex_imr_base = -1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 	.irqindex_host_ipc = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 	.chip_info = &bdw_chip_info,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 	.default_fw_path = "intel/sof",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) 	.default_tplg_path = "intel/sof-tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 	.default_fw_filename = "sof-bdw.ri",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 	.nocodec_tplg_filename = "sof-bdw-nocodec.tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) 	.ops = &sof_bdw_ops,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) #if IS_ENABLED(CONFIG_ACPI) && IS_ENABLED(CONFIG_SND_SOC_SOF_BAYTRAIL)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) /* BYTCR uses different IRQ index */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) static const struct sof_dev_desc sof_acpi_baytrailcr_desc = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 	.machines = snd_soc_acpi_intel_baytrail_machines,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 	.resindex_lpe_base = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 	.resindex_pcicfg_base = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 	.resindex_imr_base = 2,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 	.irqindex_host_ipc = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 	.chip_info = &byt_chip_info,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 	.default_fw_path = "intel/sof",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 	.default_tplg_path = "intel/sof-tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 	.default_fw_filename = "sof-byt.ri",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 	.nocodec_tplg_filename = "sof-byt-nocodec.tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 	.ops = &sof_byt_ops,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) static const struct sof_dev_desc sof_acpi_baytrail_desc = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 	.machines = snd_soc_acpi_intel_baytrail_machines,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 	.resindex_lpe_base = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 	.resindex_pcicfg_base = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 	.resindex_imr_base = 2,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 	.irqindex_host_ipc = 5,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 	.chip_info = &byt_chip_info,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 	.default_fw_path = "intel/sof",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 	.default_tplg_path = "intel/sof-tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 	.default_fw_filename = "sof-byt.ri",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 	.nocodec_tplg_filename = "sof-byt-nocodec.tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 	.ops = &sof_byt_ops,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) static const struct sof_dev_desc sof_acpi_cherrytrail_desc = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 	.machines = snd_soc_acpi_intel_cherrytrail_machines,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 	.resindex_lpe_base = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 	.resindex_pcicfg_base = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 	.resindex_imr_base = 2,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 	.irqindex_host_ipc = 5,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 	.chip_info = &cht_chip_info,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 	.default_fw_path = "intel/sof",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 	.default_tplg_path = "intel/sof-tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 	.default_fw_filename = "sof-cht.ri",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 	.nocodec_tplg_filename = "sof-cht-nocodec.tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 	.ops = &sof_cht_ops,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) static const struct dev_pm_ops sof_acpi_pm = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 	SET_SYSTEM_SLEEP_PM_OPS(snd_sof_suspend, snd_sof_resume)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 	SET_RUNTIME_PM_OPS(snd_sof_runtime_suspend, snd_sof_runtime_resume,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 			   snd_sof_runtime_idle)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) static void sof_acpi_probe_complete(struct device *dev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 	dev_dbg(dev, "Completing SOF ACPI probe");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 	if (sof_acpi_debug & SOF_ACPI_DISABLE_PM_RUNTIME)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 		return;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 	/* allow runtime_pm */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 	pm_runtime_set_autosuspend_delay(dev, SND_SOF_SUSPEND_DELAY_MS);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 	pm_runtime_use_autosuspend(dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 	pm_runtime_enable(dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) static int sof_acpi_probe(struct platform_device *pdev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 	struct device *dev = &pdev->dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 	const struct sof_dev_desc *desc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 	struct snd_sof_pdata *sof_pdata;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 	const struct snd_sof_dsp_ops *ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 	int ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 	dev_dbg(&pdev->dev, "ACPI DSP detected");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 	sof_pdata = devm_kzalloc(dev, sizeof(*sof_pdata), GFP_KERNEL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 	if (!sof_pdata)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) 		return -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 	desc = device_get_match_data(dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) 	if (!desc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 		return -ENODEV;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) #if IS_ENABLED(CONFIG_ACPI) && IS_ENABLED(CONFIG_SND_SOC_SOF_BAYTRAIL)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 	if (desc == &sof_acpi_baytrail_desc && soc_intel_is_byt_cr(pdev))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 		desc = &sof_acpi_baytrailcr_desc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 	/* get ops for platform */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 	ops = desc->ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 	if (!ops) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 		dev_err(dev, "error: no matching ACPI descriptor ops\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 		return -ENODEV;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 	sof_pdata->desc = desc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 	sof_pdata->dev = &pdev->dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 	sof_pdata->fw_filename = desc->default_fw_filename;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 	/* alternate fw and tplg filenames ? */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 	if (fw_path)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 		sof_pdata->fw_filename_prefix = fw_path;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 	else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 		sof_pdata->fw_filename_prefix =
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 			sof_pdata->desc->default_fw_path;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 	if (tplg_path)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 		sof_pdata->tplg_filename_prefix = tplg_path;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 	else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 		sof_pdata->tplg_filename_prefix =
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 			sof_pdata->desc->default_tplg_path;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) #if IS_ENABLED(CONFIG_SND_SOC_SOF_PROBE_WORK_QUEUE)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 	/* set callback to enable runtime_pm */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 	sof_pdata->sof_probe_complete = sof_acpi_probe_complete;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) 	/* call sof helper for DSP hardware probe */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 	ret = snd_sof_device_probe(dev, sof_pdata);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 	if (ret) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 		dev_err(dev, "error: failed to probe DSP hardware!\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 		return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) #if !IS_ENABLED(CONFIG_SND_SOC_SOF_PROBE_WORK_QUEUE)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) 	sof_acpi_probe_complete(dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 	return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) static int sof_acpi_remove(struct platform_device *pdev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 	if (!(sof_acpi_debug & SOF_ACPI_DISABLE_PM_RUNTIME))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 		pm_runtime_disable(&pdev->dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 	/* call sof helper for DSP hardware remove */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 	snd_sof_device_remove(&pdev->dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) #ifdef CONFIG_ACPI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) static const struct acpi_device_id sof_acpi_match[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) #if IS_ENABLED(CONFIG_SND_SOC_SOF_BROADWELL)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 	{ "INT3438", (unsigned long)&sof_acpi_broadwell_desc },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) #if IS_ENABLED(CONFIG_SND_SOC_SOF_BAYTRAIL)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 	{ "80860F28", (unsigned long)&sof_acpi_baytrail_desc },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 	{ "808622A8", (unsigned long)&sof_acpi_cherrytrail_desc },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 	{ }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) MODULE_DEVICE_TABLE(acpi, sof_acpi_match);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) /* acpi_driver definition */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) static struct platform_driver snd_sof_acpi_driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 	.probe = sof_acpi_probe,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 	.remove = sof_acpi_remove,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 	.driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) 		.name = "sof-audio-acpi",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 		.pm = &sof_acpi_pm,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) 		.acpi_match_table = ACPI_PTR(sof_acpi_match),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) module_platform_driver(snd_sof_acpi_driver);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) MODULE_LICENSE("Dual BSD/GPL");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) MODULE_IMPORT_NS(SND_SOC_SOF_BAYTRAIL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) MODULE_IMPORT_NS(SND_SOC_SOF_BROADWELL);