media: i2c: TDA1997x: add CONFIG_SND dependency
authorArnd Bergmann <arnd@arndb.de>
Fri, 23 Feb 2018 13:13:26 +0000 (08:13 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 26 Feb 2018 15:38:14 +0000 (10:38 -0500)
Without CONFIG_SND, we get a link error:

ERROR: "snd_soc_register_codec" [drivers/media/i2c/tda1997x.ko] undefined!
ERROR: "snd_soc_unregister_codec" [drivers/media/i2c/tda1997x.ko] undefined!
ERROR: "snd_pcm_hw_constraint_minmax" [drivers/media/i2c/tda1997x.ko] undefined!

This adds the same Kconfig dependency that we have in other
media drivers, using 'select SND_PCM' to ensure that we have
can call snd_pcm_hw_constraint_minmax, while depending on
CONFIG_SND_SOC for registering the codec.

Fixes: 9ac0038db9a7 ("media: i2c: Add TDA1997x HDMI receiver driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/Kconfig

index 6f20c7fb4a71fa1d6cdff11d01c581de4665927d..d7bba0e3f30e3d3f6bb0dba374c9c75a1eef0633 100644 (file)
@@ -59,6 +59,8 @@ config VIDEO_TDA9840
 config VIDEO_TDA1997X
        tristate "NXP TDA1997x HDMI receiver"
        depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API
+       depends on SND_SOC
+       select SND_PCM
        ---help---
          V4L2 subdevice driver for the NXP TDA1997x HDMI receivers.