[alsa-devel] [PATCH -next] ASoC: rt5677: Fix build error without CONFIG_SPI

Curtis Malainey cujomalainey at google.com
Wed Nov 27 19:59:24 CET 2019


On Wed, Nov 27, 2019 at 12:22 AM YueHaibing <yuehaibing at huawei.com> wrote:
>
> If CONFIG_SPI is n, SND_SOC_RT5677_SPI also is n, building fails:
>
> sound/soc/codecs/rt5677.o: In function `rt5677_irq':
> rt5677.c:(.text+0x2dbf): undefined reference to `rt5677_spi_hotword_detected'
> sound/soc/codecs/rt5677.o: In function `rt5677_dsp_work':
> rt5677.c:(.text+0x3709): undefined reference to `rt5677_spi_write'
>
> This adds stub helpers to fix this.
>
> Reported-by: Hulk Robot <hulkci at huawei.com>
> Fixes: 461c623270e4 ("ASoC: rt5677: Load firmware via SPI using delayed work")
> Signed-off-by: YueHaibing <yuehaibing at huawei.com>
Acked-by: Curtis Malainey <cujomalainey at chromium.org>
> ---
>  sound/soc/codecs/rt5677-spi.h | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)


More information about the Alsa-devel mailing list