linux/sound/soc/codecs/max98504.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * MAX98504 ALSA SoC Audio driver
 *
 * Copyright 2013 - 2014 Maxim Integrated Products
 * Copyright 2016 Samsung Electronics Co., Ltd.
 */

#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/regulator/consumer.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <sound/soc.h>

#include "max98504.h"

static const char * const max98504_supply_names[] =;
#define MAX98504_NUM_SUPPLIES

struct max98504_priv {};

static struct reg_default max98504_reg_defaults[] =;

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

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

static int max98504_pcm_rx_ev(struct snd_soc_dapm_widget *w,
			      struct snd_kcontrol *kcontrol, int event)
{}

static int max98504_component_probe(struct snd_soc_component *c)
{}

static void max98504_component_remove(struct snd_soc_component *c)
{}

static const char *spk_source_mux_text[] =;

static const struct soc_enum spk_source_mux_enum =;

static const struct snd_kcontrol_new spk_source_mux =;

static const struct snd_soc_dapm_route max98504_dapm_routes[] =;

static const struct snd_soc_dapm_widget max98504_dapm_widgets[] =;

static int max98504_set_tdm_slot(struct snd_soc_dai *dai,
		unsigned int tx_mask, unsigned int rx_mask,
		int slots, int slot_width)
{}
static int max98504_set_channel_map(struct snd_soc_dai *dai,
				    unsigned int tx_num,
				    const unsigned int *tx_slot,
				    unsigned int rx_num,
				    const unsigned int *rx_slot)
{}

static const struct snd_soc_dai_ops max98504_dai_ops =;

#define MAX98504_FORMATS
#define MAX98504_PDM_RATES

static struct snd_soc_dai_driver max98504_dai[] =;

static const struct snd_soc_component_driver max98504_component_driver =;

static const struct regmap_config max98504_regmap =;

static int max98504_i2c_probe(struct i2c_client *client)
{}

#ifdef CONFIG_OF
static const struct of_device_id max98504_of_match[] =;
MODULE_DEVICE_TABLE(of, max98504_of_match);
#endif

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

static struct i2c_driver max98504_i2c_driver =;
module_i2c_driver();

MODULE_DESCRIPTION();
MODULE_LICENSE();