]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dwc: make pcm support built-in when necessary
authorArnd Bergmann <arnd@arndb.de>
Mon, 20 Jun 2016 16:01:19 +0000 (18:01 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 21 Jun 2016 18:07:21 +0000 (19:07 +0100)
commit65f678b4a8441abe191622dcfd232b10eedffd23
treee25dfd6be261d3575b706554f49d194508368ab1
parentff848cca8af749934e4e3836122a9aebe9aeb892
ASoC: dwc: make pcm support built-in when necessary

The new PIO mode for the dwc audio driver causes a link failure
when it is built as a loadable module but the audio driver is built-in:

sound/built-in.o: In function `i2s_irq_handler':
:(.text+0x58c64): undefined reference to `dw_pcm_push_tx'
sound/built-in.o: In function `dw_i2s_probe':
:(.text+0x593dc): undefined reference to `dw_pcm_register'

We could link both into a single module, but apparently the
author intended them to be separate, so this instead changes
the Makefile to force the pcm module to be built-in if the
base module is. This is a bit hacky but not as bad as trying
to work around it in Kconfig language.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 13a5b703101e ("ASoC: dwc: Add PIO PCM extension")
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/dwc/Makefile