On Wed, Nov 27, 2019 at 12:22 AM YueHaibing <yuehaibing@xxxxxxxxxx> 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@xxxxxxxxxx> > Fixes: 461c623270e4 ("ASoC: rt5677: Load firmware via SPI using delayed work") > Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx> Acked-by: Curtis Malainey <cujomalainey@xxxxxxxxxxxx> > --- > sound/soc/codecs/rt5677-spi.h | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx https://mailman.alsa-project.org/mailman/listinfo/alsa-devel