// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) // // This file is provided under a dual BSD/GPLv2 license. When using or // redistributing this file, you may do so under either license. // // Copyright(c) 2018 Intel Corporation // // Author: Liam Girdwood <liam.r.girdwood@linux.intel.com> //
/* all Up boards use the community key */ staticint up_use_community_key(conststruct dmi_system_id *id)
{
sof_dmi_use_community_key = true; return 1;
}
/* * For ApolloLake Chromebooks we want to force the use of the Intel production key. * All newer platforms use the community key
*/ staticint chromebook_use_community_key(conststruct dmi_system_id *id)
{ if (!soc_intel_is_apl())
sof_dmi_use_community_key = true; return 1;
}
/* * the topology filename will be provided in the machine descriptor, unless * it is overridden by a module parameter or DMI quirk.
*/ if (tplg_filename) {
path_override->tplg_name = tplg_filename;
} else {
dmi_check_system(sof_tplg_table); if (sof_dmi_override_tplg_name)
path_override->tplg_name = sof_dmi_override_tplg_name;
}
/* set callback to be called on successful device probe to enable runtime_pm */
sof_pdata->sof_probe_complete = sof_pci_probe_complete;
/* call sof helper for DSP hardware probe */ return snd_sof_device_probe(dev, sof_pdata);
}
EXPORT_SYMBOL_NS(sof_pci_probe, "SND_SOC_SOF_PCI_DEV");
void sof_pci_remove(struct pci_dev *pci)
{ /* call sof helper for DSP hardware remove */
snd_sof_device_remove(&pci->dev);
/* follow recommendation in pci-driver.c to increment usage counter */ if (snd_sof_device_probe_completed(&pci->dev) &&
!(sof_pci_debug & SOF_PCI_DISABLE_PM_RUNTIME))
pm_runtime_get_noresume(&pci->dev);
}
EXPORT_SYMBOL_NS(sof_pci_remove, "SND_SOC_SOF_PCI_DEV");
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.