Messages in this thread | | | From | Curtis Malainey <> | Date | Wed, 27 Nov 2019 10:59:24 -0800 | Subject | Re: [PATCH -next] ASoC: rt5677: Fix build error without CONFIG_SPI |
| |
On Wed, Nov 27, 2019 at 12:22 AM YueHaibing <yuehaibing@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@huawei.com> > Fixes: 461c623270e4 ("ASoC: rt5677: Load firmware via SPI using delayed work") > Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Curtis Malainey <cujomalainey@chromium.org> > --- > sound/soc/codecs/rt5677-spi.h | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+)
| |