[linux-dvb] patch 2 / 2: deselect dst and dst-ca modules if they aren't needed

Uwe Bugla uwe.bugla at gmx.de
Wed Feb 21 17:21:05 CET 2007


Hi everybody,
within the current kernel concept you are forced to compile the dst and dst-ca modules and delete them afterwards if you enabled DVB_CORE_ATTACH.
With this patch you optimize RAM usage for all bt8xx DVB-S abd DVB-T cards with the following known exceptions (please correct this list if one or more cards are missing):
1. Pinnacle PCTV Sat with CI extension
2. TwinHan DST and clones
3. TwinHan DST with CA slot
4. Chaintech DST-1000
5. DNTV Live !

Please acknowledge this only in connection with the bt8xx documentation fix (i. e. patch 1 / 2).
Written, tested with a Pinnacle PCTV Sat without CI extension and:
Signed-off-by: Uwe Bugla <uwe.bugla at gmx.de>

--- a/drivers/media/dvb/bt8xx/Makefile
+++ b/drivers/media/dvb/bt8xx/Makefile
@@ -1,3 +1,5 @@
-obj-$(CONFIG_DVB_BT8XX) += bt878.o dvb-bt8xx.o dst.o dst_ca.o
+obj-$(CONFIG_DVB_BT8XX) += bt878.o dvb-bt8xx.o
+obj-$(CONFIG_DVB_DST) += dst.o
+obj-$(CONFIG_DVB_DST_CA) += dst_ca.o
 
 EXTRA_CFLAGS = -Idrivers/media/dvb/dvb-core/ -Idrivers/media/video/bt8xx -Idrivers/media/dvb/frontends
--- a/drivers/media/dvb/bt8xx/Kconfig
+++ b/drivers/media/dvb/bt8xx/Kconfig
@@ -9,6 +9,8 @@
 	select DVB_LGDT330X if !DVB_FE_CUSTOMISE
 	select DVB_TUNER_LGH06XF if !DVB_FE_CUSTOMISE
 	select DVB_ZL10353 if !DVB_FE_CUSTOMISE
+	select DVB_DST if !DVB_DST_CUSTOMISE
+	select DVB_DST_CA if !DVB_DST_CUSTOMISE
 	select FW_LOADER
 	help
 	  Support for PCI cards based on the Bt8xx PCI bridge. Examples are
@@ -21,3 +23,36 @@
 	  an external software decoder to watch TV on your computer.
 
 	  Say Y if you own such a device and want to use it.
+
+menu "Customise DST support"
+	depends on DVB_BT8XX
+
+config DVB_DST_CUSTOMISE
+	bool "Customise DST modules to build"
+	default N
+	help
+	  This allows the user to deselect DST drivers for TwinHan and clone cards or cards with
+	  CA slot. Use this option with care as deselecting drivers which are in fact necessary
+	  will result in DVB devices which cannot be tuned due to lack of driver support.
+
+	  Please note: To deselect these drivers you MUST say Y to DVB_CORE_ATTACH above.
+
+	  If unsure say N.
+
+config DVB_DST
+	tristate "DST module"
+	depends on DVB_BT8XX
+	default m if DVB_DST_CUSTOMISE
+	help
+	  A DVB-S tuner module. Say Y when your card is a TwinHan or clone.
+	  Also say Y if your card needs the DST_CA module.
+
+config DVB_DST_CA
+	tristate "DST CA module"
+	depends on DVB_BT8XX
+	default m if DVB_DST_CUSTOMISE
+	help
+	  A DVB-S tuner module. Say Y when your card has a conditional access slot.
+	  Examples are: TwinHan DST with CA slot, Pinnacle PCTV Sat CI, Chaintech DST-1000, DNTV Live !
+
+endmenu

Best regards

Uwe
P. S.: My past attempts on that patch were based on the assumption that a Pinnacle PCTV Sat with CI extension can run with the modules combination
dvb-bt8xx plus DST-CA. That assumption was wrong. My apologies for that. But this patch should be OK now.

-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: www.gmx.net/de/go/mailfooter/topmail-out



More information about the linux-dvb mailing list