ASoC: mediatek: export mtk-afe symbols as needed
authorArnd Bergmann <arnd@arndb.de>
Wed, 30 May 2018 22:00:35 +0000 (00:00 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 31 May 2018 10:24:48 +0000 (11:24 +0100)
commit39f56b757cf9778572041f497f6fad890224c9fb
tree47e4402a66ce7ed4fdaefeca95e8d96d272ed301
parent3217004ad97fdae6663e8e75c443d8e616cb7fd0
ASoC: mediatek: export mtk-afe symbols as needed

The new mt6797-afe driver uses some functions in a common file, which
works for a built-in driver but fails for a loadable module:

ERROR: "mtk_afe_pcm_free" [sound/soc/mediatek/mt6797/snd-soc-mt6797-afe.ko] undefined!
ERROR: "mtk_afe_add_sub_dai_control" [sound/soc/mediatek/mt6797/snd-soc-mt6797-afe.ko] undefined!
ERROR: "mtk_afe_pcm_new" [sound/soc/mediatek/mt6797/snd-soc-mt6797-afe.ko] undefined!
ERROR: "mtk_afe_combine_sub_dai" [sound/soc/mediatek/mt6797/snd-soc-mt6797-afe.ko] undefined!
ERROR: "mtk_afe_pcm_ops" [sound/soc/mediatek/mt6797/snd-soc-mt6797-afe.ko] undefined!

This exports the five symbols above for modules.

Fixes: b3c702f56bf5 ("ASoC: mt6797: combine DAI to register component")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/common/mtk-afe-platform-driver.c