Skip to content

Commit 8d01c3c

Browse files
plbossartbroonie
authored andcommitted
ASoC: SOF: nocodec: fix undefined reference
The nocodec option can be selected individually, leading to the following issue: sound/soc/sof/core.o: In function `snd_sof_device_probe': core.c:(.text+0x4af): undefined reference to `sof_nocodec_setup' Fix by selecting the SND_SOF_NOCODEC option as needed. Reported-by: Hulk Robot <hulkci@huawei.com> Reported-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 7f6647c commit 8d01c3c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎sound/soc/sof/Kconfig‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ config SND_SOC_SOF_OPTIONS
4444
if SND_SOC_SOF_OPTIONS
4545

4646
config SND_SOC_SOF_NOCODEC
47-
tristate "SOF nocodec mode Support"
47+
tristate
48+
49+
config SND_SOC_SOF_NOCODEC_SUPPORT
50+
bool "SOF nocodec mode support"
4851
help
4952
This adds support for a dummy/nocodec machine driver fallback
5053
option if no known codec is detected. This is typically only
@@ -80,7 +83,7 @@ if SND_SOC_SOF_DEBUG
8083

8184
config SND_SOC_SOF_FORCE_NOCODEC_MODE
8285
bool "SOF force nocodec Mode"
83-
depends on SND_SOC_SOF_NOCODEC
86+
depends on SND_SOC_SOF_NOCODEC_SUPPORT
8487
help
8588
This forces SOF to use dummy/nocodec as machine driver, even
8689
though there is a codec detected on the real platform. This is
@@ -135,6 +138,7 @@ endif ## SND_SOC_SOF_OPTIONS
135138
config SND_SOC_SOF
136139
tristate
137140
select SND_SOC_TOPOLOGY
141+
select SND_SOC_SOF_NOCODEC if SND_SOC_SOF_NOCODEC_SUPPORT
138142
help
139143
This option is not user-selectable but automagically handled by
140144
'select' statements at a higher level

0 commit comments

Comments
 (0)