linux/sound/soc/codecs/cs35l32.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * cs35l32.c -- CS35L32 ALSA SoC audio driver
 *
 * Copyright 2014 CirrusLogic, Inc.
 *
 * Author: Brian Austin <[email protected]>
 */

#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/regulator/consumer.h>
#include <linux/gpio/consumer.h>
#include <linux/of.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/soc-dapm.h>
#include <sound/initval.h>
#include <sound/tlv.h>
#include <dt-bindings/sound/cs35l32.h>

#include "cs35l32.h"
#include "cirrus_legacy.h"

#define CS35L32_NUM_SUPPLIES
static const char *const cs35l32_supply_names[CS35L32_NUM_SUPPLIES] =;

struct  cs35l32_private {};

static const struct reg_default cs35l32_reg_defaults[] =;

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

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

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

static DECLARE_TLV_DB_SCALE(classd_ctl_tlv, 900, 300, 0);

static const struct snd_kcontrol_new imon_ctl =;

static const struct snd_kcontrol_new vmon_ctl =;

static const struct snd_kcontrol_new vpmon_ctl =;

static const struct snd_kcontrol_new cs35l32_snd_controls[] =;

static const struct snd_soc_dapm_widget cs35l32_dapm_widgets[] =;

static const struct snd_soc_dapm_route cs35l32_audio_map[] =;

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

static int cs35l32_set_tristate(struct snd_soc_dai *dai, int tristate)
{}

static const struct snd_soc_dai_ops cs35l32_ops =;

static struct snd_soc_dai_driver cs35l32_dai[] =;

static int cs35l32_component_set_sysclk(struct snd_soc_component *component,
			      int clk_id, int source, unsigned int freq, int dir)
{}

static const struct snd_soc_component_driver soc_component_dev_cs35l32 =;

/* Current and threshold powerup sequence Pg37 in datasheet */
static const struct reg_sequence cs35l32_monitor_patch[] =;

static const struct regmap_config cs35l32_regmap =;

static int cs35l32_handle_of_data(struct i2c_client *i2c_client,
				    struct cs35l32_platform_data *pdata)
{}

static int cs35l32_i2c_probe(struct i2c_client *i2c_client)
{}

static void cs35l32_i2c_remove(struct i2c_client *i2c_client)
{}

#ifdef CONFIG_PM
static int cs35l32_runtime_suspend(struct device *dev)
{}

static int cs35l32_runtime_resume(struct device *dev)
{}
#endif

static const struct dev_pm_ops cs35l32_runtime_pm =;

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


static const struct i2c_device_id cs35l32_id[] =;

MODULE_DEVICE_TABLE(i2c, cs35l32_id);

static struct i2c_driver cs35l32_i2c_driver =;

module_i2c_driver();

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