linux/sound/soc/codecs/cs4349.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * cs4349.c  --  CS4349 ALSA Soc Audio driver
 *
 * Copyright 2015 Cirrus Logic, Inc.
 *
 * Authors: Tim Howe <[email protected]>
 */

#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/gpio/consumer.h>
#include <linux/platform_device.h>
#include <linux/pm.h>
#include <linux/i2c.h>
#include <linux/regmap.h>
#include <linux/slab.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 "cs4349.h"


static const struct reg_default cs4349_reg_defaults[] =;

/* Private data for the CS4349 */
struct  cs4349_private {};

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

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

static int cs4349_set_dai_fmt(struct snd_soc_dai *codec_dai,
			      unsigned int format)
{}

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

static int cs4349_mute(struct snd_soc_dai *dai, int mute, int direction)
{}

static DECLARE_TLV_DB_SCALE(dig_tlv, -12750, 50, 0);

static const char * const chan_mix_texts[] =;

static const char * const fm_texts[] =;

static const char * const deemph_texts[] =;

static const char * const softr_zeroc_texts[] =;

static int deemph_values[] =;

static int softr_zeroc_values[] =;

static const struct soc_enum chan_mix_enum =;

static const struct soc_enum fm_mode_enum =;

static SOC_VALUE_ENUM_SINGLE_DECL(deemph_enum, CS4349_MODE, 0, DEM_MASK,
				deemph_texts, deemph_values);

static SOC_VALUE_ENUM_SINGLE_DECL(softr_zeroc_enum, CS4349_RMPFLT, 0,
				SR_ZC_MASK, softr_zeroc_texts,
				softr_zeroc_values);

static const struct snd_kcontrol_new cs4349_snd_controls[] =;

static const struct snd_soc_dapm_widget cs4349_dapm_widgets[] =;

static const struct snd_soc_dapm_route cs4349_routes[] =;

#define CS4349_PCM_FORMATS

#define CS4349_PCM_RATES

static const struct snd_soc_dai_ops cs4349_dai_ops =;

static struct snd_soc_dai_driver cs4349_dai =;

static const struct snd_soc_component_driver soc_component_dev_cs4349 =;

static const struct regmap_config cs4349_regmap =;

static int cs4349_i2c_probe(struct i2c_client *client)
{}

static void cs4349_i2c_remove(struct i2c_client *client)
{}

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

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

static const struct dev_pm_ops cs4349_runtime_pm =;

static const struct of_device_id cs4349_of_match[] =;

MODULE_DEVICE_TABLE(of, cs4349_of_match);

static const struct i2c_device_id cs4349_i2c_id[] =;

MODULE_DEVICE_TABLE(i2c, cs4349_i2c_id);

static struct i2c_driver cs4349_i2c_driver =;

module_i2c_driver();

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