]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite357f6a3b7aa88bb17e02c755a2c449160730418
tree47e4402a66ce7ed4fdaefeca95e8d96d272ed301
parentd101ad832fe934b86a364c48bc93344f6f548eed
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: 1c2f9880301b ("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