#include <linux/bitfield.h>
#include <linux/clk.h>
#include <linux/module.h>
#include <sound/pcm_params.h>
#include <linux/regmap.h>
#include <linux/reset.h>
#include <sound/soc.h>
#include <sound/soc-dai.h>
#include <dt-bindings/sound/meson-g12a-tohdmitx.h>
#include "meson-codec-glue.h"
#define G12A_TOHDMITX_DRV_NAME …
#define TOHDMITX_CTRL0 …
#define CTRL0_ENABLE_SHIFT …
#define CTRL0_I2S_DAT_SEL_SHIFT …
#define CTRL0_I2S_DAT_SEL …
#define CTRL0_I2S_LRCLK_SEL …
#define CTRL0_I2S_BLK_CAP_INV …
#define CTRL0_I2S_BCLK_O_INV …
#define CTRL0_I2S_BCLK_SEL …
#define CTRL0_SPDIF_CLK_CAP_INV …
#define CTRL0_SPDIF_CLK_O_INV …
#define CTRL0_SPDIF_SEL_SHIFT …
#define CTRL0_SPDIF_SEL …
#define CTRL0_SPDIF_CLK_SEL …
static const char * const g12a_tohdmitx_i2s_mux_texts[] = …;
static int g12a_tohdmitx_i2s_mux_put_enum(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static SOC_ENUM_SINGLE_DECL(g12a_tohdmitx_i2s_mux_enum, TOHDMITX_CTRL0,
CTRL0_I2S_DAT_SEL_SHIFT,
g12a_tohdmitx_i2s_mux_texts);
static const struct snd_kcontrol_new g12a_tohdmitx_i2s_mux = …;
static const char * const g12a_tohdmitx_spdif_mux_texts[] = …;
static int g12a_tohdmitx_spdif_mux_put_enum(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static SOC_ENUM_SINGLE_DECL(g12a_tohdmitx_spdif_mux_enum, TOHDMITX_CTRL0,
CTRL0_SPDIF_SEL_SHIFT,
g12a_tohdmitx_spdif_mux_texts);
static const struct snd_kcontrol_new g12a_tohdmitx_spdif_mux = …;
static const struct snd_kcontrol_new g12a_tohdmitx_out_enable = …;
static const struct snd_soc_dapm_widget g12a_tohdmitx_widgets[] = …;
static const struct snd_soc_dai_ops g12a_tohdmitx_input_ops = …;
static const struct snd_soc_dai_ops g12a_tohdmitx_output_ops = …;
#define TOHDMITX_SPDIF_FORMATS …
#define TOHDMITX_I2S_FORMATS …
#define TOHDMITX_STREAM(xname, xsuffix, xfmt, xchmax) …
#define TOHDMITX_IN(xname, xid, xfmt, xchmax) …
#define TOHDMITX_OUT(xname, xid, xfmt, xchmax) …
static struct snd_soc_dai_driver g12a_tohdmitx_dai_drv[] = …;
static int g12a_tohdmi_component_probe(struct snd_soc_component *c)
{ … }
static const struct snd_soc_dapm_route g12a_tohdmitx_routes[] = …;
static const struct snd_soc_component_driver g12a_tohdmitx_component_drv = …;
static const struct regmap_config g12a_tohdmitx_regmap_cfg = …;
static const struct of_device_id g12a_tohdmitx_of_match[] = …;
MODULE_DEVICE_TABLE(of, g12a_tohdmitx_of_match);
static int g12a_tohdmitx_probe(struct platform_device *pdev)
{ … }
static struct platform_driver g12a_tohdmitx_pdrv = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;