ASoC: meson: axg-spdifout: select SND_PCM_IEC958
authorArnd Bergmann <arnd@arndb.de>
Tue, 24 Jul 2018 09:36:45 +0000 (11:36 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 24 Jul 2018 10:56:28 +0000 (11:56 +0100)
When CONFIG_SND_PCM_IEC958 is disabled, we get a link error for the
new driver:

sound/soc/meson/axg-spdifout.o: In function `axg_spdifout_hw_params':
axg-spdifout.c:(.text+0x650): undefined reference to `snd_pcm_create_iec958_consumer_hw_params'

The other users use 'select', so we should do the same here.

Fixes: 53eb4b7aaa04 ("ASoC: meson: add axg spdif output")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/meson/Kconfig

index 4cf93c05a9823cc91de1ca6feaedfad5f4810765..8af8bc358a90a6e1f30cf58e1dc525ac3f8ec10a 100644 (file)
@@ -56,6 +56,7 @@ config SND_MESON_AXG_SOUND_CARD
 
 config SND_MESON_AXG_SPDIFOUT
        tristate "Amlogic AXG SPDIF Output Support"
+       select SND_PCM_IEC958
        imply SND_SOC_SPDIF
        help
          Select Y or M to add support for SPDIF output serializer embedded