linux/sound/soc/codecs/tfa9879.c

// SPDX-License-Identifier: GPL-2.0+
//
// tfa9879.c  --  driver for NXP Semiconductors TFA9879
//
// Copyright (C) 2014 Axentia Technologies AB
// Author: Peter Rosin <[email protected]>

#include <linux/module.h>
#include <linux/init.h>
#include <linux/i2c.h>
#include <linux/regmap.h>
#include <sound/soc.h>
#include <sound/tlv.h>
#include <sound/pcm_params.h>

#include "tfa9879.h"

struct tfa9879_priv {};

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

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

static int tfa9879_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
{}

static const struct reg_default tfa9879_regs[] =;

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

static const DECLARE_TLV_DB_SCALE(volume_tlv, -7050, 50, 1);
static const DECLARE_TLV_DB_SCALE(tb_gain_tlv, -1800, 200, 0);
static const char * const tb_freq_text[] =;
static const struct soc_enum treble_freq_enum =;
static const struct soc_enum bass_freq_enum =;

static const struct snd_kcontrol_new tfa9879_controls[] =;

static const struct snd_soc_dapm_widget tfa9879_dapm_widgets[] =;

static const struct snd_soc_dapm_route tfa9879_dapm_routes[] =;

static const struct snd_soc_component_driver tfa9879_component =;

static const struct regmap_config tfa9879_regmap =;

static const struct snd_soc_dai_ops tfa9879_dai_ops =;

#define TFA9879_RATES

#define TFA9879_FORMATS

static struct snd_soc_dai_driver tfa9879_dai =;

static int tfa9879_i2c_probe(struct i2c_client *i2c)
{}

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

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

static struct i2c_driver tfa9879_i2c_driver =;

module_i2c_driver();

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