linux/sound/soc/codecs/pcm1789.c

// SPDX-License-Identifier: GPL-2.0
// Audio driver for PCM1789
// Copyright (C) 2018 Bootlin
// Mylène Josserand <[email protected]>

#include <linux/gpio/consumer.h>
#include <linux/module.h>
#include <linux/workqueue.h>

#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/tlv.h>

#include "pcm1789.h"

#define PCM1789_MUTE_CONTROL
#define PCM1789_FMT_CONTROL
#define PCM1789_SOFT_MUTE
#define PCM1789_DAC_VOL_LEFT
#define PCM1789_DAC_VOL_RIGHT

#define PCM1789_FMT_MASK
#define PCM1789_MUTE_MASK
#define PCM1789_MUTE_SRET

struct pcm1789_private {};

static const struct reg_default pcm1789_reg_defaults[] =;

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

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

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

static int pcm1789_mute(struct snd_soc_dai *codec_dai, int mute, int direction)
{}

static int pcm1789_hw_params(struct snd_pcm_substream *substream,
			     struct snd_pcm_hw_params *params,
			     struct snd_soc_dai *codec_dai)
{}

static void pcm1789_work_queue(struct work_struct *work)
{}

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

static const struct snd_soc_dai_ops pcm1789_dai_ops =;

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

static const struct snd_kcontrol_new pcm1789_controls[] =;

static const struct snd_soc_dapm_widget pcm1789_dapm_widgets[] =;

static const struct snd_soc_dapm_route pcm1789_dapm_routes[] =;

static struct snd_soc_dai_driver pcm1789_dai =;

const struct regmap_config pcm1789_regmap_config =;
EXPORT_SYMBOL_GPL();

static const struct snd_soc_component_driver soc_component_dev_pcm1789 =;

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

void pcm1789_common_exit(struct device *dev)
{}
EXPORT_SYMBOL_GPL();

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