#include <linux/bitfield.h>
#include <linux/clk.h>
#include <linux/regmap.h>
#include <linux/module.h>
#include <linux/of_platform.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/soc-dai.h>
#include "axg-fifo.h"
#define CTRL0_FRDDR_PP_MODE …
#define CTRL0_SEL1_EN_SHIFT …
#define CTRL0_SEL2_SHIFT …
#define CTRL0_SEL2_EN_SHIFT …
#define CTRL0_SEL3_SHIFT …
#define CTRL0_SEL3_EN_SHIFT …
#define CTRL1_FRDDR_FORCE_FINISH …
#define CTRL2_SEL1_SHIFT …
#define CTRL2_SEL1_EN_SHIFT …
#define CTRL2_SEL2_SHIFT …
#define CTRL2_SEL2_EN_SHIFT …
#define CTRL2_SEL3_SHIFT …
#define CTRL2_SEL3_EN_SHIFT …
static int g12a_frddr_dai_prepare(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static int axg_frddr_dai_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static int axg_frddr_dai_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static void axg_frddr_dai_shutdown(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static int axg_frddr_pcm_new(struct snd_soc_pcm_runtime *rtd,
struct snd_soc_dai *dai)
{ … }
static const struct snd_soc_dai_ops axg_frddr_ops = …;
static struct snd_soc_dai_driver axg_frddr_dai_drv = …;
static const char * const axg_frddr_sel_texts[] = …;
static SOC_ENUM_SINGLE_DECL(axg_frddr_sel_enum, FIFO_CTRL0, CTRL0_SEL_SHIFT,
axg_frddr_sel_texts);
static const struct snd_kcontrol_new axg_frddr_out_demux = …;
static const struct snd_soc_dapm_widget axg_frddr_dapm_widgets[] = …;
static const struct snd_soc_dapm_route axg_frddr_dapm_routes[] = …;
static const struct snd_soc_component_driver axg_frddr_component_drv = …;
static const struct axg_fifo_match_data axg_frddr_match_data = …;
static const struct snd_soc_dai_ops g12a_frddr_ops = …;
static struct snd_soc_dai_driver g12a_frddr_dai_drv = …;
static SOC_ENUM_SINGLE_DECL(g12a_frddr_sel1_enum, FIFO_CTRL0, CTRL0_SEL_SHIFT,
axg_frddr_sel_texts);
static SOC_ENUM_SINGLE_DECL(g12a_frddr_sel2_enum, FIFO_CTRL0, CTRL0_SEL2_SHIFT,
axg_frddr_sel_texts);
static SOC_ENUM_SINGLE_DECL(g12a_frddr_sel3_enum, FIFO_CTRL0, CTRL0_SEL3_SHIFT,
axg_frddr_sel_texts);
static const struct snd_kcontrol_new g12a_frddr_out1_demux = …;
static const struct snd_kcontrol_new g12a_frddr_out2_demux = …;
static const struct snd_kcontrol_new g12a_frddr_out3_demux = …;
static const struct snd_kcontrol_new g12a_frddr_out1_enable = …;
static const struct snd_kcontrol_new g12a_frddr_out2_enable = …;
static const struct snd_kcontrol_new g12a_frddr_out3_enable = …;
static const struct snd_soc_dapm_widget g12a_frddr_dapm_widgets[] = …;
static const struct snd_soc_dapm_route g12a_frddr_dapm_routes[] = …;
static const struct snd_soc_component_driver g12a_frddr_component_drv = …;
static const struct axg_fifo_match_data g12a_frddr_match_data = …;
static const struct snd_kcontrol_new sm1_frddr_out1_enable = …;
static const struct snd_kcontrol_new sm1_frddr_out2_enable = …;
static const struct snd_kcontrol_new sm1_frddr_out3_enable = …;
static SOC_ENUM_SINGLE_DECL(sm1_frddr_sel1_enum, FIFO_CTRL2, CTRL2_SEL1_SHIFT,
axg_frddr_sel_texts);
static SOC_ENUM_SINGLE_DECL(sm1_frddr_sel2_enum, FIFO_CTRL2, CTRL2_SEL2_SHIFT,
axg_frddr_sel_texts);
static SOC_ENUM_SINGLE_DECL(sm1_frddr_sel3_enum, FIFO_CTRL2, CTRL2_SEL3_SHIFT,
axg_frddr_sel_texts);
static const struct snd_kcontrol_new sm1_frddr_out1_demux = …;
static const struct snd_kcontrol_new sm1_frddr_out2_demux = …;
static const struct snd_kcontrol_new sm1_frddr_out3_demux = …;
static const struct snd_soc_dapm_widget sm1_frddr_dapm_widgets[] = …;
static const struct snd_soc_component_driver sm1_frddr_component_drv = …;
static const struct axg_fifo_match_data sm1_frddr_match_data = …;
static const struct of_device_id axg_frddr_of_match[] = …;
MODULE_DEVICE_TABLE(of, axg_frddr_of_match);
static struct platform_driver axg_frddr_pdrv = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;