Unverified Commit 097e874a authored by Jiaxin Yu's avatar Jiaxin Yu Committed by Mark Brown
Browse files

ASoC: mediatek: mt8186: add platform driver

parent 16824dff
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -152,6 +152,18 @@ config SND_SOC_MT8183_DA7219_MAX98357A
	  Select Y if you have such device.
	  If unsure select "N".

config SND_SOC_MT8186
	tristate "ASoC support for Mediatek MT8186 chip"
	depends on ARCH_MEDIATEK || COMPILE_TEST
	depends on COMMON_CLK
	select SND_SOC_MEDIATEK
	select MFD_SYSCON if SND_SOC_MT6358
	help
	  This adds ASoC driver for Mediatek MT8186 boards
	  that can be used with other codecs.
	  Select Y if you have such device.
	  If unsure select "N".

config SND_SOC_MTK_BTCVSD
	tristate "ALSA BT SCO CVSD/MSBC Driver"
	help
+1 −0
Original line number Diff line number Diff line
@@ -4,5 +4,6 @@ obj-$(CONFIG_SND_SOC_MT2701) += mt2701/
obj-$(CONFIG_SND_SOC_MT6797) += mt6797/
obj-$(CONFIG_SND_SOC_MT8173) += mt8173/
obj-$(CONFIG_SND_SOC_MT8183) += mt8183/
obj-$(CONFIG_SND_SOC_MT8186) += mt8186/
obj-$(CONFIG_SND_SOC_MT8192) += mt8192/
obj-$(CONFIG_SND_SOC_MT8195) += mt8195/
+19 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0

# platform driver
snd-soc-mt8186-afe-objs := \
	mt8186-afe-pcm.o \
	mt8186-audsys-clk.o \
	mt8186-afe-clk.o \
	mt8186-afe-gpio.o \
	mt8186-dai-adda.o \
	mt8186-afe-control.o \
	mt8186-dai-i2s.o \
	mt8186-dai-hw-gain.o \
	mt8186-dai-pcm.o \
	mt8186-dai-src.o \
	mt8186-dai-hostless.o \
	mt8186-dai-tdm.o \
	mt8186-misc-control.o \

obj-$(CONFIG_SND_SOC_MT8186) += snd-soc-mt8186-afe.o
+2 −1
Original line number Diff line number Diff line
@@ -645,7 +645,8 @@ int mt8186_init_clock(struct mtk_base_afe *afe)
	return 0;
}

void mt8186_deinit_clock(struct mtk_base_afe *afe)
void mt8186_deinit_clock(void *priv)
{
	struct mtk_base_afe *afe = priv;
	mt8186_audsys_clk_unregister(afe);
}
+1 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ enum {
struct mtk_base_afe;
int mt8186_set_audio_int_bus_parent(struct mtk_base_afe *afe, int clk_id);
int mt8186_init_clock(struct mtk_base_afe *afe);
void mt8186_deinit_clock(struct mtk_base_afe *afe);
void mt8186_deinit_clock(void *priv);
int mt8186_afe_enable_cgs(struct mtk_base_afe *afe);
void mt8186_afe_disable_cgs(struct mtk_base_afe *afe);
int mt8186_afe_enable_clock(struct mtk_base_afe *afe);
Loading