#include <linux/module.h>
#include <linux/slab.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <linux/regmap.h>
#include <sound/soc.h>
#include <sound/initval.h>
#include <linux/i2c.h>
#include <linux/mfd/si476x-core.h>
enum si476x_audio_registers { … };
enum si476x_digital_io_output_format { … };
#define SI476X_DIGITAL_IO_OUTPUT_WIDTH_MASK …
#define SI476X_DIGITAL_IO_OUTPUT_FORMAT_MASK …
enum si476x_daudio_formats { … };
enum si476x_pcm_format { … };
static const struct snd_soc_dapm_widget si476x_dapm_widgets[] = …;
static const struct snd_soc_dapm_route si476x_dapm_routes[] = …;
static int si476x_codec_set_dai_fmt(struct snd_soc_dai *codec_dai,
unsigned int fmt)
{ … }
static int si476x_codec_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static const struct snd_soc_dai_ops si476x_dai_ops = …;
static struct snd_soc_dai_driver si476x_dai = …;
static int si476x_probe(struct snd_soc_component *component)
{ … }
static const struct snd_soc_component_driver soc_component_dev_si476x = …;
static int si476x_platform_probe(struct platform_device *pdev)
{ … }
MODULE_ALIAS(…) …;
static struct platform_driver si476x_platform_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;