Skip to content

Commit

Permalink
ASoC: SOF: imx8: Fix COMPILE_TEST error
Browse files Browse the repository at this point in the history
When do compile test, if SND_SOC_SOF_OF is not set, we get:

sound/soc/sof/imx/imx8.o: In function `imx8_dsp_handle_request':
imx8.c:(.text+0xb0): undefined reference to `snd_sof_ipc_msgs_rx'
sound/soc/sof/imx/imx8.o: In function `imx8_ipc_msg_data':
imx8.c:(.text+0xf4): undefined reference to `sof_mailbox_read'
sound/soc/sof/imx/imx8.o: In function `imx8_dsp_handle_reply':
imx8.c:(.text+0x160): undefined reference to `sof_mailbox_read'

Make SND_SOC_SOF_IMX_TOPLEVEL always depends on SND_SOC_SOF_OF

Reported-by: Hulk Robot <[email protected]>
Fixes: 202acc5 ("ASoC: SOF: imx: Add i.MX8 HW support")
Signed-off-by: YueHaibing <[email protected]>
Reviewed-by: Daniel Baluta <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
YueHaibing authored and broonie committed Sep 5, 2019
1 parent 329299d commit f4df4e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/soc/sof/imx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

config SND_SOC_SOF_IMX_TOPLEVEL
bool "SOF support for NXP i.MX audio DSPs"
depends on ARM64 && SND_SOC_SOF_OF || COMPILE_TEST
depends on ARM64|| COMPILE_TEST
depends on SND_SOC_SOF_OF
help
This adds support for Sound Open Firmware for NXP i.MX platforms.
Say Y if you have such a device.
Expand Down

0 comments on commit f4df4e4

Please sign in to comment.