#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_TODDR_SEL_RESAMPLE …
#define CTRL0_TODDR_EXT_SIGNED …
#define CTRL0_TODDR_PP_MODE …
#define CTRL0_TODDR_SYNC_CH …
#define CTRL0_TODDR_TYPE …
#define CTRL0_TODDR_MSB_POS …
#define CTRL0_TODDR_LSB_POS …
#define CTRL1_TODDR_FORCE_FINISH …
#define CTRL1_SEL_SHIFT …
#define TODDR_MSB_POS …
static int axg_toddr_pcm_new(struct snd_soc_pcm_runtime *rtd,
struct snd_soc_dai *dai)
{ … }
static int g12a_toddr_dai_prepare(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static int axg_toddr_dai_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static int axg_toddr_dai_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static void axg_toddr_dai_shutdown(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static const struct snd_soc_dai_ops axg_toddr_ops = …;
static struct snd_soc_dai_driver axg_toddr_dai_drv = …;
static const char * const axg_toddr_sel_texts[] = …;
static SOC_ENUM_SINGLE_DECL(axg_toddr_sel_enum, FIFO_CTRL0, CTRL0_SEL_SHIFT,
axg_toddr_sel_texts);
static const struct snd_kcontrol_new axg_toddr_in_mux = …;
static const struct snd_soc_dapm_widget axg_toddr_dapm_widgets[] = …;
static const struct snd_soc_dapm_route axg_toddr_dapm_routes[] = …;
static const struct snd_soc_component_driver axg_toddr_component_drv = …;
static const struct axg_fifo_match_data axg_toddr_match_data = …;
static int g12a_toddr_dai_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static const struct snd_soc_dai_ops g12a_toddr_ops = …;
static struct snd_soc_dai_driver g12a_toddr_dai_drv = …;
static const struct snd_soc_component_driver g12a_toddr_component_drv = …;
static const struct axg_fifo_match_data g12a_toddr_match_data = …;
static const char * const sm1_toddr_sel_texts[] = …;
static SOC_ENUM_SINGLE_DECL(sm1_toddr_sel_enum, FIFO_CTRL1, CTRL1_SEL_SHIFT,
sm1_toddr_sel_texts);
static const struct snd_kcontrol_new sm1_toddr_in_mux = …;
static const struct snd_soc_dapm_widget sm1_toddr_dapm_widgets[] = …;
static const struct snd_soc_dapm_route sm1_toddr_dapm_routes[] = …;
static const struct snd_soc_component_driver sm1_toddr_component_drv = …;
static const struct axg_fifo_match_data sm1_toddr_match_data = …;
static const struct of_device_id axg_toddr_of_match[] = …;
MODULE_DEVICE_TABLE(of, axg_toddr_of_match);
static struct platform_driver axg_toddr_pdrv = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;