#include <linux/clk.h>
#include <linux/clk-provider.h>
#include <linux/delay.h>
#include <linux/dmaengine.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/pm_runtime.h>
#include <linux/rpmsg.h>
#include <linux/slab.h>
#include <sound/core.h>
#include <sound/dmaengine_pcm.h>
#include <sound/pcm_params.h>
#include "fsl_rpmsg.h"
#include "imx-pcm.h"
#define FSL_RPMSG_RATES …
#define FSL_RPMSG_FORMATS …
#define LPA_LARGE_BUFFER_SIZE …
static const unsigned int fsl_rpmsg_rates[] = …;
static const struct snd_pcm_hw_constraint_list fsl_rpmsg_rate_constraints = …;
static int fsl_rpmsg_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static int fsl_rpmsg_hw_free(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static int fsl_rpmsg_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *cpu_dai)
{ … }
static const struct snd_soc_dai_ops fsl_rpmsg_dai_ops = …;
static struct snd_soc_dai_driver fsl_rpmsg_dai = …;
static const struct snd_soc_component_driver fsl_component = …;
static const struct fsl_rpmsg_soc_data imx7ulp_data = …;
static const struct fsl_rpmsg_soc_data imx8mm_data = …;
static const struct fsl_rpmsg_soc_data imx8mn_data = …;
static const struct fsl_rpmsg_soc_data imx8mp_data = …;
static const struct fsl_rpmsg_soc_data imx93_data = …;
static const struct fsl_rpmsg_soc_data imx95_data = …;
static const struct of_device_id fsl_rpmsg_ids[] = …;
MODULE_DEVICE_TABLE(of, fsl_rpmsg_ids);
static int fsl_rpmsg_probe(struct platform_device *pdev)
{ … }
static void fsl_rpmsg_remove(struct platform_device *pdev)
{ … }
#ifdef CONFIG_PM
static int fsl_rpmsg_runtime_resume(struct device *dev)
{ … }
static int fsl_rpmsg_runtime_suspend(struct device *dev)
{ … }
#endif
static const struct dev_pm_ops fsl_rpmsg_pm_ops = …;
static struct platform_driver fsl_rpmsg_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_ALIAS(…) …;
MODULE_LICENSE(…) …;