Skip to contentSkip to conversation

bttv winfast 2000 tuner type

PATCH In review John McCutchan 2 participants 2 messages Nov 4, 2004 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bttv winfast 2000 tuner type

Trivial patch that lets you configure the tuner type of your winfast 2000 tuner card. The default value is the previous hard coded value.

Signature · 1 line
John McCutchan <[email protected]>
drivers/media/video/Kconfig renamed from linux/drivers/media/video/Kconfig +12 -0
@@ -22,6 +22,18 @@
 	  To compile this driver as a module, choose M here: the
 	  module will be called bttv.
 
+config VIDEO_WINFAST2000_TUNER_TYPE
+	int "Leadtek WinFast 2000 tuner type"
+	depends on VIDEO_BT848
+	default 5
+	help
+	  Selects the tuner type for the WinFast 2000 TV Tuner cards.
+
+	  Known tuner types:
+
+	  5 - PAL
+	  2 - NTSC
+
 config VIDEO_PMS
 	tristate "Mediavision Pro Movie Studio Video For Linux"
 	depends on VIDEO_DEV && ISA
drivers/media/video/bttv-cards.c renamed from linux/drivers/media/video/bttv-cards.c +1 -1
@@ -794,7 +794,7 @@
 	.needs_tvaudio	= 0,
 	.pll		= PLL_28,
 	.has_radio	= 1,
-	.tuner_type	= 5, // default for now, gpio reads BFFF06 for Pal bg+dk
+	.tuner_type	= CONFIG_VIDEO_WINFAST2000_TUNER_TYPE, 
 	.audio_hook	= winfast2000_audio,
 	.has_remote     = 1,
 },{
#1 lore raw
Quoted 2 lines · John McCutchan

Trivial patch that lets you configure the tuner type of your winfast 2000 tuner card. The default value is the previous hard coded value.

No. Compile time options are evil.

There is a insmod option for that (tuner=<nr>) since ages because that is a common issue with tv cards that they are shipped with different tuners in different regions of the world and it isn't allways known how to figure which one actually is used.

Just put "option bttv tuner=whatever" into your modprobe.conf and be done with it.

Gerd

Signature · 1 line
#define printk(args...) fprintf(stderr, ## args)