#include <linux/module.h>
#include <linux/device.h>
#include <linux/of.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/soc.h>
#include <sound/jack.h>
#include <sound/soc-dapm.h>
#include "../codecs/sgtl5000.h"
#include "mxs-saif.h"
static int mxs_sgtl5000_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params)
{ … }
static const struct snd_soc_ops mxs_sgtl5000_hifi_ops = …;
#define MXS_SGTL5000_DAI_FMT …
SND_SOC_DAILINK_DEFS(…);
SND_SOC_DAILINK_DEFS(…);
static struct snd_soc_dai_link mxs_sgtl5000_dai[] = …;
static const struct snd_soc_dapm_widget mxs_sgtl5000_dapm_widgets[] = …;
static struct snd_soc_card mxs_sgtl5000 = …;
static int mxs_sgtl5000_probe(struct platform_device *pdev)
{ … }
static void mxs_sgtl5000_remove(struct platform_device *pdev)
{ … }
static const struct of_device_id mxs_sgtl5000_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, mxs_sgtl5000_dt_ids);
static struct platform_driver mxs_sgtl5000_audio_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;