linux/sound/soc/codecs/dmic.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * dmic.c  --  SoC audio for Generic Digital MICs
 *
 * Author: Liam Girdwood <[email protected]>
 */

#include <linux/delay.h>
#include <linux/gpio.h>
#include <linux/gpio/consumer.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/soc.h>
#include <sound/soc-dapm.h>

#define MAX_MODESWITCH_DELAY
static int modeswitch_delay;
module_param(modeswitch_delay, uint, 0644);

static int wakeup_delay;
module_param(wakeup_delay, uint, 0644);

struct dmic {};

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

static const struct snd_soc_dai_ops dmic_dai_ops =;

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

static struct snd_soc_dai_driver dmic_dai =;

static int dmic_component_probe(struct snd_soc_component *component)
{}

static const struct snd_soc_dapm_widget dmic_dapm_widgets[] =;

static const struct snd_soc_dapm_route intercon[] =;

static const struct snd_soc_component_driver soc_dmic =;

static int dmic_dev_probe(struct platform_device *pdev)
{}

MODULE_ALIAS();

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

static struct platform_driver dmic_driver =;

module_platform_driver();

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