linux/sound/soc/sof/sof-pci-dev.c

// 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 <[email protected]>
//

#include <linux/firmware.h>
#include <linux/dmi.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/platform_data/x86/soc.h>
#include <linux/pm_runtime.h>
#include <sound/soc-acpi.h>
#include <sound/soc-acpi-intel-match.h>
#include <sound/sof.h>
#include "ops.h"
#include "sof-pci-dev.h"

static char *fw_path;
module_param(fw_path, charp, 0444);
MODULE_PARM_DESC();

static char *fw_filename;
module_param(fw_filename, charp, 0444);
MODULE_PARM_DESC();

static char *lib_path;
module_param(lib_path, charp, 0444);
MODULE_PARM_DESC();

static char *tplg_path;
module_param(tplg_path, charp, 0444);
MODULE_PARM_DESC();

static char *tplg_filename;
module_param(tplg_filename, charp, 0444);
MODULE_PARM_DESC();

static int sof_pci_debug;
module_param_named(sof_pci_debug, sof_pci_debug, int, 0444);
MODULE_PARM_DESC();

static int sof_pci_ipc_type =;
module_param_named(ipc_type, sof_pci_ipc_type, int, 0444);
MODULE_PARM_DESC();

static const char *sof_dmi_override_tplg_name;
static bool sof_dmi_use_community_key;

#define SOF_PCI_DISABLE_PM_RUNTIME

static int sof_tplg_cb(const struct dmi_system_id *id)
{}

static const struct dmi_system_id sof_tplg_table[] =;

/* all Up boards use the community key */
static int up_use_community_key(const struct dmi_system_id *id)
{}

/*
 * For ApolloLake Chromebooks we want to force the use of the Intel production key.
 * All newer platforms use the community key
 */
static int chromebook_use_community_key(const struct dmi_system_id *id)
{}

static const struct dmi_system_id community_key_platforms[] =;

const struct dev_pm_ops sof_pci_pm =;
EXPORT_SYMBOL_NS();

static void sof_pci_probe_complete(struct device *dev)
{}

int sof_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
{}
EXPORT_SYMBOL_NS();

void sof_pci_remove(struct pci_dev *pci)
{}
EXPORT_SYMBOL_NS();

void sof_pci_shutdown(struct pci_dev *pci)
{}
EXPORT_SYMBOL_NS();

MODULE_LICENSE();
MODULE_DESCRIPTION();