Patch "media: make RADIO_ADAPTERS tristate" has been added to the 5.18-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    media: make RADIO_ADAPTERS tristate

to the 5.18-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     media-make-radio_adapters-tristate.patch
and it can be found in the queue-5.18 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit d4076b42186b61d57002df4e3c2416017c973610
Author: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Date:   Wed Apr 20 08:36:44 2022 +0200

    media: make RADIO_ADAPTERS tristate
    
    [ Upstream commit 215d49a41709610b9e82a49b27269cfaff1ef0b6 ]
    
    Fix build errors when RADIO_TEA575X=y, VIDEO_BT848=m, and VIDEO_DEV=m.
    
    The build errors occur due to [in drivers/media/Makefile]:
    obj-$(CONFIG_VIDEO_DEV) += radio/
    so the (would be) builtin tea575x.o is not being built.
    
    This is also due to drivers/media/radio/Kconfig declaring a bool
    Kconfig symbol (RADIO_ADAPTERS) that depends on a tristate (VIDEO_DEV),
    so when VIDEO_DEV=m, RADIO_ADAPTERS becomes =y, and then the drivers
    that depend on RADIO_ADPATERS can be configured as builtin (=y) or
    as loadable modules (=m).
    
    Fix this by converting RADIO_ADAPTERS to a tristate symbol instead
    of a bool symbol.
    
    Fixes these build errors:
    
    ERROR: modpost: "snd_tea575x_hw_init" [drivers/media/pci/bt8xx/bttv.ko] undefined!
    ERROR: modpost: "snd_tea575x_set_freq" [drivers/media/pci/bt8xx/bttv.ko] undefined!
    ERROR: modpost: "snd_tea575x_s_hw_freq_seek" [drivers/media/pci/bt8xx/bttv.ko] undefined!
    ERROR: modpost: "snd_tea575x_enum_freq_bands" [drivers/media/pci/bt8xx/bttv.ko] undefined!
    ERROR: modpost: "snd_tea575x_g_tuner" [drivers/media/pci/bt8xx/bttv.ko] undefined!
    
    Link: lore.kernel.org/r/202204191711.IKJJFjgU-lkp@xxxxxxxxx
    
    Fixes: 9958d30f38b9 ("media: Kconfig: cleanup VIDEO_DEV dependencies")
    Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
    Reported-by: kernel test robot <lkp@xxxxxxxxx>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xxxxxxxxx>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/media/radio/Kconfig b/drivers/media/radio/Kconfig
index cca03bd2cc42..616a38feb641 100644
--- a/drivers/media/radio/Kconfig
+++ b/drivers/media/radio/Kconfig
@@ -4,10 +4,10 @@
 #
 
 menuconfig RADIO_ADAPTERS
-	bool "Radio Adapters"
+	tristate "Radio Adapters"
 	depends on VIDEO_DEV
 	depends on MEDIA_RADIO_SUPPORT
-	default y
+	default VIDEO_DEV
 	help
 	  Say Y here to enable selecting AM/FM radio adapters.
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux