linux/sound/soc/codecs/wm8523.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * wm8523.c  --  WM8523 ALSA SoC Audio driver
 *
 * Copyright 2009 Wolfson Microelectronics plc
 *
 * Author: Mark Brown <[email protected]>
 */

#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/pm.h>
#include <linux/i2c.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>
#include <linux/slab.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/initval.h>
#include <sound/tlv.h>

#include "wm8523.h"

#define WM8523_NUM_SUPPLIES
static const char *wm8523_supply_names[WM8523_NUM_SUPPLIES] =;

#define WM8523_NUM_RATES

/* codec private data */
struct wm8523_priv {};

static const struct reg_default wm8523_reg_defaults[] =;

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

static const DECLARE_TLV_DB_SCALE(dac_tlv, -10000, 25, 0);

static const char *wm8523_zd_count_text[] =;

static SOC_ENUM_SINGLE_DECL(wm8523_zc_count, WM8523_ZERO_DETECT, 0,
			    wm8523_zd_count_text);

static const struct snd_kcontrol_new wm8523_controls[] =;

static const struct snd_soc_dapm_widget wm8523_dapm_widgets[] =;

static const struct snd_soc_dapm_route wm8523_dapm_routes[] =;

static const struct {} lrclk_ratios[WM8523_NUM_RATES] =;

static const struct {} bclk_ratios[] =;

static int wm8523_startup(struct snd_pcm_substream *substream,
			  struct snd_soc_dai *dai)
{}

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

static int wm8523_set_dai_sysclk(struct snd_soc_dai *codec_dai,
		int clk_id, unsigned int freq, int dir)
{}


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

static int wm8523_set_bias_level(struct snd_soc_component *component,
				 enum snd_soc_bias_level level)
{}

#define WM8523_RATES

#define WM8523_FORMATS

static const struct snd_soc_dai_ops wm8523_dai_ops =;

static struct snd_soc_dai_driver wm8523_dai =;

static int wm8523_probe(struct snd_soc_component *component)
{}

static const struct snd_soc_component_driver soc_component_dev_wm8523 =;

static const struct of_device_id wm8523_of_match[] =;
MODULE_DEVICE_TABLE(of, wm8523_of_match);

static const struct regmap_config wm8523_regmap =;

static int wm8523_i2c_probe(struct i2c_client *i2c)
{}

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

static struct i2c_driver wm8523_i2c_driver =;

module_i2c_driver();

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