linux/sound/soc/codecs/pcm179x.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * PCM179X ASoC codec driver
 *
 * Copyright (c) Amarula Solutions B.V. 2013
 *
 *     Michael Trimarchi <[email protected]>
 */

#include <linux/module.h>
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/device.h>

#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/initval.h>
#include <sound/soc.h>
#include <sound/tlv.h>
#include <linux/of.h>

#include "pcm179x.h"

#define PCM179X_DAC_VOL_LEFT
#define PCM179X_DAC_VOL_RIGHT
#define PCM179X_FMT_CONTROL
#define PCM179X_MODE_CONTROL
#define PCM179X_SOFT_MUTE

#define PCM179X_FMT_MASK
#define PCM179X_FMT_SHIFT
#define PCM179X_MUTE_MASK
#define PCM179X_MUTE_SHIFT
#define PCM179X_ATLD_ENABLE

static const struct reg_default pcm179x_reg_defaults[] =;

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

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

struct pcm179x_private {};

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

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

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

static const struct snd_soc_dai_ops pcm179x_dai_ops =;

static const DECLARE_TLV_DB_SCALE(pcm179x_dac_tlv, -12000, 50, 1);

static const struct snd_kcontrol_new pcm179x_controls[] =;

static const struct snd_soc_dapm_widget pcm179x_dapm_widgets[] =;

static const struct snd_soc_dapm_route pcm179x_dapm_routes[] =;

static struct snd_soc_dai_driver pcm179x_dai =;

const struct regmap_config pcm179x_regmap_config =;
EXPORT_SYMBOL_GPL();

static const struct snd_soc_component_driver soc_component_dev_pcm179x =;

int pcm179x_common_init(struct device *dev, struct regmap *regmap)
{}
EXPORT_SYMBOL_GPL();

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