#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/pm.h>
#include <linux/regulator/consumer.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/jack.h>
#include <sound/initval.h>
#include <sound/tlv.h>
#include "pcm186x.h"
static const char * const pcm186x_supply_names[] = …;
#define PCM186x_NUM_SUPPLIES …
struct pcm186x_priv { … };
static const DECLARE_TLV_DB_SCALE(pcm186x_pga_tlv, -1200, 50, 0);
static const struct snd_kcontrol_new pcm1863_snd_controls[] = …;
static const struct snd_kcontrol_new pcm1865_snd_controls[] = …;
static const unsigned int pcm186x_adc_input_channel_sel_value[] = …;
static const char * const pcm186x_adcl_input_channel_sel_text[] = …;
static const char * const pcm186x_adcr_input_channel_sel_text[] = …;
static const struct soc_enum pcm186x_adc_input_channel_sel[] = …;
static const struct snd_kcontrol_new pcm186x_adc_mux_controls[] = …;
static const struct snd_soc_dapm_widget pcm1863_dapm_widgets[] = …;
static const struct snd_soc_dapm_widget pcm1865_dapm_widgets[] = …;
static const struct snd_soc_dapm_route pcm1863_dapm_routes[] = …;
static const struct snd_soc_dapm_route pcm1865_dapm_routes[] = …;
static int pcm186x_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static int pcm186x_set_fmt(struct snd_soc_dai *dai, unsigned int format)
{ … }
static int pcm186x_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
unsigned int rx_mask, int slots, int slot_width)
{ … }
static int pcm186x_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
unsigned int freq, int dir)
{ … }
static const struct snd_soc_dai_ops pcm186x_dai_ops = …;
static struct snd_soc_dai_driver pcm1863_dai = …;
static struct snd_soc_dai_driver pcm1865_dai = …;
static int pcm186x_power_on(struct snd_soc_component *component)
{ … }
static int pcm186x_power_off(struct snd_soc_component *component)
{ … }
static int pcm186x_set_bias_level(struct snd_soc_component *component,
enum snd_soc_bias_level level)
{ … }
static struct snd_soc_component_driver soc_codec_dev_pcm1863 = …;
static struct snd_soc_component_driver soc_codec_dev_pcm1865 = …;
static bool pcm186x_volatile(struct device *dev, unsigned int reg)
{ … }
static const struct regmap_range_cfg pcm186x_range = …;
const struct regmap_config pcm186x_regmap = …;
EXPORT_SYMBOL_GPL(…);
int pcm186x_probe(struct device *dev, enum pcm186x_type type, int irq,
struct regmap *regmap)
{ … }
EXPORT_SYMBOL_GPL(…);
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;