linux/sound/soc/codecs/wm8782.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * sound/soc/codecs/wm8782.c
 * simple, strap-pin configured 24bit 2ch ADC
 *
 * Copyright: 2011 Raumfeld GmbH
 * Author: Johannes Stezenbach <[email protected]>
 *
 * based on ad73311.c
 * Copyright:	Analog Devices Inc.
 * Author:	Cliff Cai <[email protected]>
 */

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

/* regulator power supply names */
static const char *supply_names[] =;

struct wm8782_priv {};

static int wm8782_dai_startup(struct snd_pcm_substream *sub, struct snd_soc_dai *dai)
{}

static const struct snd_soc_dapm_widget wm8782_dapm_widgets[] =;

static const struct snd_soc_dapm_route wm8782_dapm_routes[] =;

static const struct snd_soc_dai_ops wm8782_dai_ops =;

static struct snd_soc_dai_driver wm8782_dai =;

static int wm8782_soc_probe(struct snd_soc_component *component)
{}

static void wm8782_soc_remove(struct snd_soc_component *component)
{}

#ifdef CONFIG_PM
static int wm8782_soc_suspend(struct snd_soc_component *component)
{}

static int wm8782_soc_resume(struct snd_soc_component *component)
{}
#else
#define wm8782_soc_suspend
#define wm8782_soc_resume
#endif /* CONFIG_PM */

static const struct snd_soc_component_driver soc_component_dev_wm8782 =;

static int wm8782_probe(struct platform_device *pdev)
{}

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

static struct platform_driver wm8782_codec_driver =;

module_platform_driver();

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