#include <linux/acpi.h>
#include <linux/dmi.h>
#include <linux/gpio/consumer.h>
#include <linux/gpio/machine.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/soc-acpi.h>
#include "../../codecs/wm8804.h"
struct sof_card_private { … };
#define SOF_WM8804_UP2_QUIRK …
static unsigned long sof_wm8804_quirk;
static int sof_wm8804_quirk_cb(const struct dmi_system_id *id)
{ … }
static const struct dmi_system_id sof_wm8804_quirk_table[] = …;
static int sof_wm8804_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params)
{ … }
static const struct snd_soc_ops sof_wm8804_ops = …;
SND_SOC_DAILINK_DEF(ssp5_pin,
DAILINK_COMP_ARRAY(COMP_CPU("SSP5 Pin")));
SND_SOC_DAILINK_DEF(ssp5_codec,
DAILINK_COMP_ARRAY(COMP_CODEC("i2c-1AEC8804:00", "wm8804-spdif")));
SND_SOC_DAILINK_DEF(platform,
DAILINK_COMP_ARRAY(COMP_PLATFORM("0000:00:0e.0")));
static struct snd_soc_dai_link dailink[] = …;
static struct snd_soc_card sof_wm8804_card = …;
static char codec_name[SND_ACPI_I2C_ID_LEN];
static struct gpiod_lookup_table up2_gpios_table = …;
static int sof_wm8804_probe(struct platform_device *pdev)
{ … }
static void sof_wm8804_remove(struct platform_device *pdev)
{ … }
static struct platform_driver sof_wm8804_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;