linux/sound/soc/mediatek/mt8365/mt8365-mt6357.c

// SPDX-License-Identifier: GPL-2.0
/*
 * MediaTek MT8365 Sound Card driver
 *
 * Copyright (c) 2024 MediaTek Inc.
 * Authors: Nicolas Belin <[email protected]>
 */

#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();

/* Digital audio interface glue - connects codec <---> CPU */
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 information */
MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();
MODULE_ALIAS();