[linux-dvb] Patch for all tuners Beholder series 40x, 50x, 60x, M6, Columbus

2007-09-05 Thread Igor Kuznetsov


Made support all tuners Beholder. Almost-not yet only support hardware MPEG 
decoders in a series of M6.



Patch for all tuners Beholder series 40x, 50x, 60x, M6, and Columbus



http://www.igk.ru/linux/files/v4l/v4l2-beholder-0.1.patch

--

Igor Kuznetsov IgK

Email: [EMAIL PROTECTED] [EMAIL PROTECTED]

ICQ: 6651879diff -urp v4l-dvb/linux/drivers/media/video/ir-kbd-i2c.c v4l-dvb.beholder/linux/drivers/media/video/ir-kbd-i2c.c
--- v4l-dvb/linux/drivers/media/video/ir-kbd-i2c.c	2007-08-23 01:01:28.0 +0400
+++ v4l-dvb.beholder/linux/drivers/media/video/ir-kbd-i2c.c	2007-09-04 15:14:53.0 +0400
@@ -383,6 +383,7 @@ static int ir_attach(struct i2c_adapter 
 	case 0x7a:
 	case 0x47:
 	case 0x71:
+	case 0x2d:
 		if (adap-id == I2C_HW_B_CX2388x) {
 			/* Handled by cx88-input */
 			name= CX2388x remote;
@@ -493,7 +494,7 @@ static int ir_probe(struct i2c_adapter *
 	*/
 
 	static const int probe_bttv[] = { 0x1a, 0x18, 0x4b, 0x64, 0x30, -1};
-	static const int probe_saa7134[] = { 0x7a, 0x47, 0x71, -1 };
+	static const int probe_saa7134[] = { 0x7a, 0x47, 0x71, 0x2d, -1 };
 	static const int probe_em28XX[] = { 0x30, 0x47, -1 };
 	static const int probe_cx88[] = { 0x18, 0x71, -1 };
 	const int *probe = NULL;
diff -urp v4l-dvb/linux/drivers/media/video/saa7134/saa7134-cards.c v4l-dvb.beholder/linux/drivers/media/video/saa7134/saa7134-cards.c
--- v4l-dvb/linux/drivers/media/video/saa7134/saa7134-cards.c	2007-08-23 01:01:29.0 +0400
+++ v4l-dvb.beholder/linux/drivers/media/video/saa7134/saa7134-cards.c	2007-09-05 01:21:46.0 +0400
@@ -2177,6 +2177,190 @@ struct saa7134_board saa7134_boards[] = 
 			.gpio = 0x01,
 		},
 	},
+	[SAA7134_BOARD_BEHOLD_401] = {
+		.name   = Beholder BeholdTV 401,
+		.audio_clock= 0x00187de7,
+		.tuner_type = TUNER_PHILIPS_FQ1216ME,
+		.radio_type = UNSET,
+		.tuner_addr	= ADDR_UNSET,
+		.radio_addr	= ADDR_UNSET,
+		.inputs = {{
+			.name = name_svideo,
+			.vmux = 8,
+			.amux = LINE1,
+		},{
+			.name = name_comp1,
+			.vmux = 1,
+			.amux = LINE1,
+		},{
+			.name = name_tv,
+			.vmux = 3,
+			.amux = LINE2,
+			.tv   = 1,
+		}},
+		.mute = {
+			.name = name_mute,
+			.amux = LINE1,
+		},
+	},
+	[SAA7134_BOARD_BEHOLD_403] = {
+		.name   = Beholder BeholdTV 403,
+		.audio_clock= 0x00187de7,
+		.tuner_type = TUNER_PHILIPS_FQ1216ME,
+		.radio_type = UNSET,
+		.tuner_addr	= ADDR_UNSET,
+		.radio_addr	= ADDR_UNSET,
+		.inputs = {{
+			.name = name_svideo,
+			.vmux = 8,
+			.amux = LINE1,
+		},{
+			.name   = name_comp1,
+			.vmux   = 1,
+			.amux   = LINE1,
+		},{
+			.name = name_tv,
+			.vmux = 3,
+			.amux = LINE2,
+			.tv   = 1,
+		}},
+	},
+	[SAA7134_BOARD_BEHOLD_403FM] = {
+		.name   = Beholder BeholdTV 403 FM,
+		.audio_clock= 0x00187de7,
+		.tuner_type = TUNER_PHILIPS_FQ1216ME,
+		.radio_type = UNSET,
+		.tuner_addr	= ADDR_UNSET,
+		.radio_addr	= ADDR_UNSET,
+		.inputs = {{
+			.name = name_svideo,
+			.vmux = 8,
+			.amux = LINE1,
+		},{
+			.name   = name_comp1,
+			.vmux   = 1,
+			.amux   = LINE1,
+		},{
+			.name = name_tv,
+			.vmux = 3,
+			.amux = LINE2,
+			.tv   = 1,
+		}},
+		.radio = {
+			.name = name_radio,
+			.amux = LINE2,
+		},
+	},
+	[SAA7134_BOARD_BEHOLD_405] = {
+	/* http://tuner.beholder.ru, Sergey [EMAIL PROTECTED] */
+		.name   = Beholder BeholdTV 405,
+		.audio_clock= 0x00187de7,
+		.tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
+		.radio_type = UNSET,
+		.tuner_addr = ADDR_UNSET,
+		.radio_addr = ADDR_UNSET,
+		.tda9887_conf   = TDA9887_PRESENT,
+		.inputs = {{
+			.name = name_svideo,
+			.vmux = 8,
+			.amux = LINE1,
+		},{
+		.name = name_comp1,
+		.vmux = 3,
+		.amux = LINE1,
+		},{
+		.name = name_tv,
+		.vmux = 3,
+		.amux = LINE2,
+		.tv   = 1,
+		}},
+	},
+	[SAA7134_BOARD_BEHOLD_405FM] = {
+	/* http://tuner.beholder.ru, Sergey [EMAIL PROTECTED] */
+		.name   = Beholder BeholdTV 405 FM,
+		.audio_clock= 0x00187de7,
+		.tuner_type = TUNER_PHILIPS_FM1216ME_MK3,
+		.radio_type = UNSET,
+		.tuner_addr = ADDR_UNSET,
+		.radio_addr = ADDR_UNSET,
+		.tda9887_conf   = TDA9887_PRESENT,
+		.inputs = {{
+			.name = name_svideo,
+			.vmux = 8,
+			.amux = LINE1,
+		},{
+		.name = name_comp1,
+		.vmux = 3,
+		.amux = LINE1,
+		},{
+		.name = name_tv,
+		.vmux = 3,
+		.amux = LINE2,
+		.tv   = 1,
+		}},
+		.radio = {
+		.name = name_radio,
+		.amux = LINE2,
+		},
+	},
+	[SAA7134_BOARD_BEHOLD_407FM] = {
+	/* http://tuner.beholder.ru */
+	/*, Evgeny [EMAIL PROTECTED] */
+		.name 		= Beholder BeholdTV 407 FM,
+		.audio_clock 	= 0x00187de7,
+		.tuner_type 	= TUNER_PHILIPS_FM1216ME_MK3,
+		.radio_type 	= UNSET,
+		.tuner_addr 	= ADDR_UNSET,
+		.radio_addr 	= ADDR_UNSET,
+		.tda9887_conf 	= TDA9887_PRESENT,
+		.gpiomask = 0xc0c000,
+		.inputs = {{
+			.name = name_svideo,
+			.vmux = 8,
+			.amux = LINE1,
+			.gpio 

Re: [linux-dvb] Patch for all tuners Beholder series 40x, 50x, 60x, M6, Columbus

2007-09-05 Thread Michael Krufky
Igor Kuznetsov wrote:
   
 
 Made support all tuners Beholder. Almost-not yet only support hardware MPEG 
 decoders in a series of M6.
 
 
 
 Patch for all tuners Beholder series 40x, 50x, 60x, M6, and Columbus
 
 
 
 http://www.igk.ru/linux/files/v4l/v4l2-beholder-0.1.patch
 
 --
 
 Igor Kuznetsov IgK
 
 Email: [EMAIL PROTECTED] [EMAIL PROTECTED]
 
 ICQ: 6651879

Igor,

First off, it looks like these devices are analog-only, so it would be more 
appropriate to send this to the video4linux mailing list (cc added)

The patch is large, so I chopped it from the email.  For those interested, 
please see the original email:

http://linuxtv.org/pipermail/linux-dvb/2007-September/020256.html

Secondly, your patch introduces broken whitespace all over.  Tabs should be 
used for leading spacing, not a series of spaces.

We prefer for new cards to be added to the end of the card array-- not 
dispersed randomly throughout.

It looks like your large patch includes work from multiple contributors, based 
on the different names that I see commented within the card array additions.

You did not provide a sign-off on your work.  You should probably also collect 
sign-off's from those other developers involved in this work.

For more information on sign-off, and patch submissions to the v4l/dvb projects 
in general, please see:

http://linuxtv.org/hg/v4l-dvb/file/tip/README.patches

The preferred method would be to clone the latest version of the repository 
from linuxtv.org, apply your patch to that tree, test it, and then generate a 
new diff as follows:

hg diff  new.patch

Then, send in that new patch to the mailing lists.

Again, when you send in the new patch with sign-offs , please be sure to 
include the video4linux mailing list:

Linux and Kernel Video [EMAIL PROTECTED]

Cheers,

Mike Krufky

___
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb