#include <linux/module.h>
#include <linux/platform_device.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/soc-acpi.h>
#include <sound/soc-dapm.h>
#include "../utils.h"
#define MAX98927_DEV0_NAME …
#define MAX98927_DEV1_NAME …
#define MAX98927_CODEC_NAME …
static struct snd_soc_codec_conf card_codec_conf[] = …;
static const struct snd_kcontrol_new card_controls[] = …;
static const struct snd_soc_dapm_widget card_widgets[] = …;
static const struct snd_soc_dapm_route card_base_routes[] = …;
static int
avs_max98927_be_fixup(struct snd_soc_pcm_runtime *runrime, struct snd_pcm_hw_params *params)
{ … }
static int avs_max98927_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params)
{ … }
static const struct snd_soc_ops avs_max98927_ops = …;
static int avs_create_dai_link(struct device *dev, const char *platform_name, int ssp_port,
int tdm_slot, struct snd_soc_dai_link **dai_link)
{ … }
static int avs_max98927_probe(struct platform_device *pdev)
{ … }
static const struct platform_device_id avs_max98927_driver_ids[] = …;
MODULE_DEVICE_TABLE(platform, avs_max98927_driver_ids);
static struct platform_driver avs_max98927_driver = …;
module_platform_driver(…) …
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;