linux/sound/soc/codecs/ad1980.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * ad1980.c  --  ALSA Soc AD1980 codec support
 *
 * Copyright:	Analog Devices Inc.
 * Author:	Roy Huang <[email protected]>
 * 		Cliff Cai <[email protected]>
 */

/*
 * WARNING:
 *
 * Because Analog Devices Inc. discontinued the ad1980 sound chip since
 * Sep. 2009, this ad1980 driver is not maintained, tested and supported
 * by ADI now.
 */

#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/regmap.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/ac97_codec.h>
#include <sound/initval.h>
#include <sound/soc.h>

static const struct reg_default ad1980_reg_defaults[] =;

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

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

static const struct regmap_config ad1980_regmap_config =;

static const char *ad1980_rec_sel[] =;

static SOC_ENUM_DOUBLE_DECL(ad1980_cap_src,
			    AC97_REC_SEL, 8, 0, ad1980_rec_sel);

static const struct snd_kcontrol_new ad1980_snd_ac97_controls[] =;

static const struct snd_soc_dapm_widget ad1980_dapm_widgets[] =;

static const struct snd_soc_dapm_route ad1980_dapm_routes[] =;

static struct snd_soc_dai_driver ad1980_dai =;

#define AD1980_VENDOR_ID
#define AD1980_VENDOR_MASK

static int ad1980_reset(struct snd_soc_component *component, int try_warm)
{}

static int ad1980_soc_probe(struct snd_soc_component *component)
{}

static void ad1980_soc_remove(struct snd_soc_component *component)
{}

static const struct snd_soc_component_driver soc_component_dev_ad1980 =;

static int ad1980_probe(struct platform_device *pdev)
{}

static struct platform_driver ad1980_codec_driver =;

module_platform_driver();

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