linux/sound/soc/codecs/lm4857.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * LM4857 AMP driver
 *
 * Copyright 2007 Wolfson Microelectronics PLC.
 * Author: Graeme Gregory
 *         [email protected]
 * Copyright 2011 Lars-Peter Clausen <[email protected]>
 */

#include <linux/init.h>
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/regmap.h>
#include <linux/slab.h>

#include <sound/core.h>
#include <sound/soc.h>
#include <sound/tlv.h>

static const struct reg_default lm4857_default_regs[] =;

/* The register offsets in the cache array */
#define LM4857_MVOL
#define LM4857_LVOL
#define LM4857_RVOL
#define LM4857_CTRL

/* the shifts required to set these bits */
#define LM4857_3D
#define LM4857_WAKEUP
#define LM4857_EPGAIN

static const unsigned int lm4857_mode_values[] =;

static const char * const lm4857_mode_texts[] =;

static SOC_VALUE_ENUM_SINGLE_AUTODISABLE_DECL(lm4857_mode_enum,
	LM4857_CTRL, 0, 0xf, lm4857_mode_texts, lm4857_mode_values);

static const struct snd_kcontrol_new lm4857_mode_ctrl =;

static const struct snd_soc_dapm_widget lm4857_dapm_widgets[] =;

static const DECLARE_TLV_DB_SCALE(stereo_tlv, -4050, 150, 0);
static const DECLARE_TLV_DB_SCALE(mono_tlv, -3450, 150, 0);

static const struct snd_kcontrol_new lm4857_controls[] =;

static const struct snd_soc_dapm_route lm4857_routes[] =;

static const struct snd_soc_component_driver lm4857_component_driver =;

static const struct regmap_config lm4857_regmap_config =;

static int lm4857_i2c_probe(struct i2c_client *i2c)
{}

static const struct i2c_device_id lm4857_i2c_id[] =;
MODULE_DEVICE_TABLE(i2c, lm4857_i2c_id);

static struct i2c_driver lm4857_i2c_driver =;

module_i2c_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();