• Arnd Bergmann's avatar
    ASoC: davinci: vcif must be a module if SND_DAVINCI_SOC is · 19926c6d
    Arnd Bergmann authored
    It is possible to configure a kernel with SND_DAVINCI_SOC=m and
    SND_DM365_VOICE_CODEC=y, which results in a link error:
    
    sound/built-in.o: In function `davinci_vcif_probe':
    sound/soc/davinci/davinci-vcif.c:223: undefined reference to `davinci_soc_platform_register'
    
    The best way to avoid this is to make SND_DM365_VOICE_CODEC
    a tristate option that depends on SND_DAVINCI_SOC, so it
    can only be a module or disabled when the base driver is
    a loadable module
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    19926c6d
Kconfig 2.91 KB