linux/sound/soc/fsl/fsl_audmix.c

// SPDX-License-Identifier: GPL-2.0
/*
 * NXP AUDMIX ALSA SoC Digital Audio Interface (DAI) driver
 *
 * Copyright 2017 NXP
 */

#include <linux/clk.h>
#include <linux/module.h>
#include <linux/of_platform.h>
#include <linux/pm_runtime.h>
#include <sound/soc.h>
#include <sound/pcm_params.h>

#include "fsl_audmix.h"

#define SOC_ENUM_SINGLE_S(xreg, xshift, xtexts)

static const char
	*tdm_sel[] =,
	*mode_sel[] =,
	*width_sel[] =,
	*endis_sel[] =,
	*updn_sel[] =,
	*mask_sel[] =;

static const struct soc_enum fsl_audmix_enum[] =;

struct fsl_audmix_state {};

static const struct fsl_audmix_state prms[4][4] =;

static int fsl_audmix_state_trans(struct snd_soc_component *comp,
				  unsigned int *mask, unsigned int *ctr,
				  const struct fsl_audmix_state prm)
{}

static int fsl_audmix_put_mix_clk_src(struct snd_kcontrol *kcontrol,
				      struct snd_ctl_elem_value *ucontrol)
{}

static int fsl_audmix_put_out_src(struct snd_kcontrol *kcontrol,
				  struct snd_ctl_elem_value *ucontrol)
{}

static const struct snd_kcontrol_new fsl_audmix_snd_controls[] =;

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

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

static const struct snd_soc_dai_ops fsl_audmix_dai_ops =;

static struct snd_soc_dai_driver fsl_audmix_dai[] =;

static const struct snd_soc_component_driver fsl_audmix_component =;

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

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

static const struct reg_default fsl_audmix_reg[] =;

static const struct regmap_config fsl_audmix_regmap_config =;

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

static int fsl_audmix_probe(struct platform_device *pdev)
{}

static void fsl_audmix_remove(struct platform_device *pdev)
{}

#ifdef CONFIG_PM
static int fsl_audmix_runtime_resume(struct device *dev)
{}

static int fsl_audmix_runtime_suspend(struct device *dev)
{}
#endif /* CONFIG_PM */

static const struct dev_pm_ops fsl_audmix_pm =;

static struct platform_driver fsl_audmix_driver =;
module_platform_driver();

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