#include <linux/module.h>
#include <linux/of_gpio.h>
#include <sound/soc.h>
#include <sound/pcm_params.h>
#include "mt8365-afe-common.h"
#include <linux/pinctrl/consumer.h>
#include "../common/mtk-soc-card.h"
#include "../common/mtk-soundcard-driver.h"
enum pinctrl_pin_state { … };
static const char * const mt8365_mt6357_pin_str[PIN_STATE_MAX] = …;
struct mt8365_mt6357_priv { … };
enum { … };
static const struct snd_soc_dapm_widget mt8365_mt6357_widgets[] = …;
static const struct snd_soc_dapm_route mt8365_mt6357_routes[] = …;
static int mt8365_mt6357_int_adda_startup(struct snd_pcm_substream *substream)
{ … }
static void mt8365_mt6357_int_adda_shutdown(struct snd_pcm_substream *substream)
{ … }
static const struct snd_soc_ops mt8365_mt6357_int_adda_ops = …;
SND_SOC_DAILINK_DEFS(…);
SND_SOC_DAILINK_DEFS(…);
SND_SOC_DAILINK_DEFS(…);
SND_SOC_DAILINK_DEFS(…);
SND_SOC_DAILINK_DEFS(…);
SND_SOC_DAILINK_DEFS(…);
SND_SOC_DAILINK_DEFS(…);
static struct snd_soc_dai_link mt8365_mt6357_dais[] = …;
static int mt8365_mt6357_gpio_probe(struct snd_soc_card *card)
{ … }
static struct snd_soc_card mt8365_mt6357_soc_card = …;
static int mt8365_mt6357_dev_probe(struct mtk_soc_card_data *soc_card_data, bool legacy)
{ … }
static const struct mtk_soundcard_pdata mt8365_mt6357_card = …;
static const struct of_device_id mt8365_mt6357_dt_match[] = …;
MODULE_DEVICE_TABLE(of, mt8365_mt6357_dt_match);
static struct platform_driver mt8365_mt6357_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;