]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: mediatek: mt8186: fix Kconfig dependency
authorRen Zhijie <renzhijie2@huawei.com>
Sun, 24 Jul 2022 11:06:19 +0000 (19:06 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 25 Jul 2022 12:16:41 +0000 (13:16 +0100)
commit1089787f3b0a5ac83a36d68d51a38499c840c365
treef8d39c0631eea5cc6d7c0e8676c05b7c29c3b3d2
parent812cec5834f62412623eff6f1842a2a32666c548
ASoC: mediatek: mt8186: fix Kconfig dependency

If CONFIG_SND_SOC_MT8186=y and CONFIG_SND_SOC_MT6358 is not set,
make ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu-, will be failed, like this:

sound/soc/mediatek/mt8186/mt8186-mt6366-common.o: In function `mt8186_mt6366_init':
mt8186-mt6366-common.c:(.text+0x4d): undefined reference to `mt6358_set_mtkaif_protocol'
make: *** [vmlinux] Error 1

To fix this build error, add select SND_SOC_MT6358 to config SND_SOC_MT8186 dependency.

Fixes: f78cbed186e0 ("ASoC: mediatek: mt8186: add platform driver")
Signed-off-by: Ren Zhijie <renzhijie2@huawei.com>
Link: https://lore.kernel.org/r/20220724110619.212774-1-renzhijie2@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/Kconfig