]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ASoC: meson: fix COMPILE_TEST error
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 16 Nov 2020 17:24:23 +0000 (18:24 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 20 Jan 2021 13:25:43 +0000 (14:25 +0100)
commit528a46500415c198f3ee3dc1d57d979b53750a2b
treef8372640fcf2b70b3d4797be43a28837d97764f8
parentdee9a5d9e5c45ed19f2a8e0ade062d6bfed43af1
ASoC: meson: fix COMPILE_TEST error

BugLink: https://bugs.launchpad.net/bugs/1910822
[ Upstream commit 299fe9937dbd1a4d9a1da6a2b6f222298534ca57 ]

When compiled with CONFIG_HAVE_CLK, the kernel need to get provider for the
clock API. This is usually selected by the platform and the sound drivers
should not really care about this. However COMPILE_TEST is special and the
platform required may not have been selected, leading to this type of
error:

> aiu-encoder-spdif.c:(.text+0x3a0): undefined reference to `clk_set_parent'

Since we need a sane provider of the API with COMPILE_TEST, depends on
COMMON_CLK.

Fixes: 6dc4fa179fb8 ("ASoC: meson: add axg fifo base driver")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20201116172423.546855-1-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
sound/soc/meson/Kconfig