#include <linux/bitops.h>
#include <linux/regmap.h>
#include <sound/pcm_params.h>
#include "mt8365-afe-clk.h"
#include "mt8365-afe-common.h"
struct mt8365_pcm_intf_data { … };
static void mt8365_dai_enable_pcm1(struct mtk_base_afe *afe)
{ … }
static void mt8365_dai_disable_pcm1(struct mtk_base_afe *afe)
{ … }
static int mt8365_dai_configure_pcm1(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static int mt8365_dai_pcm1_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static void mt8365_dai_pcm1_shutdown(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static int mt8365_dai_pcm1_prepare(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static int mt8365_dai_pcm1_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
{ … }
static const struct snd_soc_dai_ops mt8365_dai_pcm1_ops = …;
static struct snd_soc_dai_driver mtk_dai_pcm_driver[] = …;
static const struct snd_soc_dapm_widget mtk_dai_pcm_widgets[] = …;
static const struct snd_soc_dapm_route mtk_dai_pcm_routes[] = …;
static int init_pcmif_priv_data(struct mtk_base_afe *afe)
{ … }
int mt8365_dai_pcm_register(struct mtk_base_afe *afe)
{ … }