#include <linux/gpio/consumer.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/i2c.h>
#include <sound/soc.h>
#include <sound/jack.h>
#include "imx-audmux.h"
#define DAI_NAME_SIZE …
#define MUX_PORT_MAX …
struct imx_es8328_data { … };
static struct snd_soc_jack_gpio headset_jack_gpios[] = …;
static struct snd_soc_jack headset_jack;
static struct snd_soc_jack_pin headset_jack_pins[] = …;
static int imx_es8328_dai_init(struct snd_soc_pcm_runtime *rtd)
{ … }
static const struct snd_soc_dapm_widget imx_es8328_dapm_widgets[] = …;
static const struct snd_kcontrol_new imx_es8328_controls[] = …;
static int imx_es8328_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id imx_es8328_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, imx_es8328_dt_ids);
static struct platform_driver imx_es8328_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;