#include <linux/mfd/wl1273-core.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/initval.h>
#include "wl1273.h"
enum wl1273_mode { … };
struct wl1273_priv { … };
static int snd_wl1273_fm_set_i2s_mode(struct wl1273_core *core,
int rate, int width)
{ … }
static int snd_wl1273_fm_set_channel_number(struct wl1273_core *core,
int channel_number)
{ … }
static int snd_wl1273_get_audio_route(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static const char * const wl1273_audio_route[] = …;
static int snd_wl1273_set_audio_route(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static SOC_ENUM_SINGLE_EXT_DECL(wl1273_enum, wl1273_audio_route);
static int snd_wl1273_fm_audio_get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int snd_wl1273_fm_audio_put(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static const char * const wl1273_audio_strings[] = …;
static SOC_ENUM_SINGLE_EXT_DECL(wl1273_audio_enum, wl1273_audio_strings);
static int snd_wl1273_fm_volume_get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int snd_wl1273_fm_volume_put(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static const struct snd_kcontrol_new wl1273_controls[] = …;
static const struct snd_soc_dapm_widget wl1273_dapm_widgets[] = …;
static const struct snd_soc_dapm_route wl1273_dapm_routes[] = …;
static int wl1273_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static int wl1273_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 wl1273_dai_ops = …;
static struct snd_soc_dai_driver wl1273_dai = …;
int wl1273_get_format(struct snd_soc_component *component, unsigned int *fmt)
{ … }
EXPORT_SYMBOL_GPL(…);
static int wl1273_probe(struct snd_soc_component *component)
{ … }
static void wl1273_remove(struct snd_soc_component *component)
{ … }
static const struct snd_soc_component_driver soc_component_dev_wl1273 = …;
static int wl1273_platform_probe(struct platform_device *pdev)
{ … }
MODULE_ALIAS(…) …;
static struct platform_driver wl1273_platform_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;