#include <linux/clk.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/reset.h>
#include <sound/core.h>
#include <sound/dmaengine_pcm.h>
#include <sound/initval.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#define IMG_PRL_OUT_TX_FIFO …
#define IMG_PRL_OUT_CTL …
#define IMG_PRL_OUT_CTL_CH_MASK …
#define IMG_PRL_OUT_CTL_PACKH_MASK …
#define IMG_PRL_OUT_CTL_EDGE_MASK …
#define IMG_PRL_OUT_CTL_ME_MASK …
#define IMG_PRL_OUT_CTL_SRST_MASK …
struct img_prl_out { … };
static int img_prl_out_suspend(struct device *dev)
{ … }
static int img_prl_out_resume(struct device *dev)
{ … }
static inline void img_prl_out_writel(struct img_prl_out *prl,
u32 val, u32 reg)
{ … }
static inline u32 img_prl_out_readl(struct img_prl_out *prl, u32 reg)
{ … }
static void img_prl_out_reset(struct img_prl_out *prl)
{ … }
static int img_prl_out_trigger(struct snd_pcm_substream *substream, int cmd,
struct snd_soc_dai *dai)
{ … }
static int img_prl_out_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
{ … }
static int img_prl_out_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
{ … }
static int img_prl_out_dai_probe(struct snd_soc_dai *dai)
{ … }
static const struct snd_soc_dai_ops img_prl_out_dai_ops = …;
static struct snd_soc_dai_driver img_prl_out_dai = …;
static const struct snd_soc_component_driver img_prl_out_component = …;
static int img_prl_out_probe(struct platform_device *pdev)
{ … }
static void img_prl_out_dev_remove(struct platform_device *pdev)
{ … }
static const struct of_device_id img_prl_out_of_match[] = …;
MODULE_DEVICE_TABLE(of, img_prl_out_of_match);
static const struct dev_pm_ops img_prl_out_pm_ops = …;
static struct platform_driver img_prl_out_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;