#include <linux/module.h>
#include <linux/init.h>
#include <linux/i2c.h>
#include <linux/regmap.h>
#include <sound/soc.h>
#include <sound/tlv.h>
#include "max9877.h"
static const struct reg_default max9877_regs[] = …;
static const DECLARE_TLV_DB_RANGE(max9877_pgain_tlv,
0, 1, TLV_DB_SCALE_ITEM(0, 900, 0),
2, 2, TLV_DB_SCALE_ITEM(2000, 0, 0)
);
static const DECLARE_TLV_DB_RANGE(max9877_output_tlv,
0, 7, TLV_DB_SCALE_ITEM(-7900, 400, 1),
8, 15, TLV_DB_SCALE_ITEM(-4700, 300, 0),
16, 23, TLV_DB_SCALE_ITEM(-2300, 200, 0),
24, 31, TLV_DB_SCALE_ITEM(-700, 100, 0)
);
static const char *max9877_out_mode[] = …;
static const char *max9877_osc_mode[] = …;
static const struct soc_enum max9877_enum[] = …;
static const struct snd_kcontrol_new max9877_controls[] = …;
static const struct snd_soc_dapm_widget max9877_dapm_widgets[] = …;
static const struct snd_soc_dapm_route max9877_dapm_routes[] = …;
static const struct snd_soc_component_driver max9877_component_driver = …;
static const struct regmap_config max9877_regmap = …;
static int max9877_i2c_probe(struct i2c_client *client)
{ … }
static const struct i2c_device_id max9877_i2c_id[] = …;
MODULE_DEVICE_TABLE(i2c, max9877_i2c_id);
static struct i2c_driver max9877_i2c_driver = …;
module_i2c_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;