linux/sound/soc/codecs/max98925.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * max98925.c -- ALSA SoC Stereo MAX98925 driver
 * Copyright 2013-15 Maxim Integrated Products
 */
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <linux/cdev.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/tlv.h>
#include "max98925.h"

static const char *const dai_text[] =;

static const char * const max98925_boost_voltage_text[] =;

static SOC_ENUM_SINGLE_DECL(max98925_boost_voltage,
	MAX98925_CONFIGURATION, M98925_BST_VOUT_SHIFT,
	max98925_boost_voltage_text);

static const char *const hpf_text[] =;

static const struct reg_default max98925_reg[] =;

static const struct soc_enum max98925_dai_enum =;

static const struct soc_enum max98925_hpf_enum =;

static const struct snd_kcontrol_new max98925_hpf_sel_mux =;

static const struct snd_kcontrol_new max98925_dai_sel_mux =;

static int max98925_dac_event(struct snd_soc_dapm_widget *w,
		struct snd_kcontrol *kcontrol, int event)
{}

static const struct snd_soc_dapm_widget max98925_dapm_widgets[] =;

static const struct snd_soc_dapm_route max98925_audio_map[] =;

static bool max98925_volatile_register(struct device *dev, unsigned int reg)
{}

static bool max98925_readable_register(struct device *dev, unsigned int reg)
{}

static DECLARE_TLV_DB_SCALE(max98925_spk_tlv, -600, 100, 0);

static const struct snd_kcontrol_new max98925_snd_controls[] =;

/* codec sample rate and n/m dividers parameter table */
static const struct {} rate_table[] =;

static inline int max98925_rate_value(struct snd_soc_component *component,
		int rate, int clock, int *value, int *n, int *m)
{}

static void max98925_set_sense_data(struct max98925_priv *max98925)
{}

static int max98925_dai_set_fmt(struct snd_soc_dai *codec_dai,
				 unsigned int fmt)
{}

static int max98925_set_clock(struct max98925_priv *max98925,
		struct snd_pcm_hw_params *params)
{}

static int max98925_dai_hw_params(struct snd_pcm_substream *substream,
				   struct snd_pcm_hw_params *params,
				   struct snd_soc_dai *dai)
{}

static int max98925_dai_set_sysclk(struct snd_soc_dai *dai,
				   int clk_id, unsigned int freq, int dir)
{}

#define MAX98925_FORMATS

static const struct snd_soc_dai_ops max98925_dai_ops =;

static struct snd_soc_dai_driver max98925_dai[] =;

static int max98925_probe(struct snd_soc_component *component)
{}

static const struct snd_soc_component_driver soc_component_dev_max98925 =;

static const struct regmap_config max98925_regmap =;

static int max98925_i2c_probe(struct i2c_client *i2c)
{}

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

#ifdef CONFIG_OF
static const struct of_device_id max98925_of_match[] =;
MODULE_DEVICE_TABLE(of, max98925_of_match);
#endif

static struct i2c_driver max98925_i2c_driver =;

module_i2c_driver()

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