#include <linux/input.h>
#include <linux/module.h>
#include <sound/jack.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <linux/platform_device.h>
#include <sound/soc.h>
#include <sound/soc-acpi.h>
#include <sound/sof.h>
#include "../../codecs/da7219.h"
#include "sof_board_helpers.h"
#include "sof_maxim_common.h"
#define SOF_DA7219_GLK_BOARD …
#define SOF_DA7219_CML_BOARD …
#define SOF_DA7219_JSL_BOARD …
#define SOF_DA7219_MCLK_EN …
#define DIALOG_CODEC_DAI …
static int platform_clock_control(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *k, int event)
{ … }
static const struct snd_kcontrol_new controls[] = …;
static const struct snd_soc_dapm_widget widgets[] = …;
static const struct snd_soc_dapm_route audio_map[] = …;
static struct snd_soc_jack_pin jack_pins[] = …;
static int da7219_codec_init(struct snd_soc_pcm_runtime *rtd)
{ … }
static void da7219_codec_exit(struct snd_soc_pcm_runtime *rtd)
{ … }
static int card_late_probe(struct snd_soc_card *card)
{ … }
static struct snd_soc_card card_da7219 = …;
static struct snd_soc_dai_link_component da7219_component[] = …;
static int
sof_card_dai_links_create(struct device *dev, struct snd_soc_card *card,
struct sof_card_private *ctx)
{ … }
#define GLK_LINK_ORDER …
#define CML_LINK_ORDER …
#define JSL_LINK_ORDER …
static int audio_probe(struct platform_device *pdev)
{ … }
static const struct platform_device_id board_ids[] = …;
MODULE_DEVICE_TABLE(platform, board_ids);
static struct platform_driver audio = …;
module_platform_driver(…) …
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
MODULE_IMPORT_NS(…);
MODULE_IMPORT_NS(…);