Skip to contentSkip to conversation

Add Prof 7301 PCI DVB-S2 card

PATCH New Igor M. Liplianin 1 participant 1 message Nov 17, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add Prof 7301 PCI DVB-S2 card

# HG changeset patch
# User Igor M. Liplianin <[email protected]> # Date 1258420952 -7200
# Node ID b7c6748070e3547ceedd00fe90d2d220c4568e32 # Parent e341e9e85af2f8190e2b2c087b4b7888e78905ee Add Prof 7301 PCI DVB-S2 card

From: Igor M. Liplianin <[email protected]>

The card based on stv0903 demod, stb6100 tuner.

linux/Documentation/video4linux/CARDLIST.cx88 +1 -0
diff -r e341e9e85af2 -r b7c6748070e3 linux/Documentation/video4linux/CARDLIST.cx88
@@ -81,3 +81,4 @@
  80 -> Hauppauge WinTV-IR Only                             [0070:9290]
  81 -> Leadtek WinFast DTV1800 Hybrid                      [107d:6654]
  82 -> WinFast DTV2000 H rev. J                            [107d:6f2b]
+ 83 -> Prof 7301 DVB-S/S2                                  [b034:3034]
linux/drivers/media/dvb/frontends/stb6100_proc.h new file +138 -0

138 lines not on this page · raw message

linux/drivers/media/dvb/frontends/stv0900.h +2 -0
diff -r e341e9e85af2 -r b7c6748070e3 linux/drivers/media/dvb/frontends/stv0900.h
@@ -48,6 +48,8 @@
 	u8 tun2_maddress;
 	u8 tun1_adc;/* 1 for stv6110, 2 for stb6100 */
 	u8 tun2_adc;
+	/* Set device param to start dma */
+	int (*set_ts_params)(struct dvb_frontend *fe, int is_punctured);
 };
 
 #if defined(CONFIG_DVB_STV0900) || (defined(CONFIG_DVB_STV0900_MODULE) \
linux/drivers/media/dvb/frontends/stv0900_core.c +3 -0
diff -r e341e9e85af2 -r b7c6748070e3 linux/drivers/media/dvb/frontends/stv0900_core.c
@@ -1557,6 +1557,9 @@
 
 	dprintk("%s: ", __func__);
 
+	if (state->config->set_ts_params)
+		state->config->set_ts_params(fe, 0);
+
 	p_result.locked = FALSE;
 	p_search.path = state->demod;
 	p_search.frequency = c->frequency;
linux/drivers/media/video/cx88/Kconfig +2 -0
diff -r e341e9e85af2 -r b7c6748070e3 linux/drivers/media/video/cx88/Kconfig
@@ -61,6 +61,8 @@
 	select DVB_STV0299 if !DVB_FE_CUSTOMISE
 	select DVB_STV0288 if !DVB_FE_CUSTOMISE
 	select DVB_STB6000 if !DVB_FE_CUSTOMISE
+	select DVB_STV0900 if !DVB_FE_CUSTOMISE
+	select DVB_STB6100 if !DVB_FE_CUSTOMISE
 	select MEDIA_TUNER_SIMPLE if !MEDIA_TUNER_CUSTOMISE
 	---help---
 	  This adds support for DVB/ATSC cards based on the
linux/drivers/media/video/cx88/cx88-cards.c +17 -0
diff -r e341e9e85af2 -r b7c6748070e3 linux/drivers/media/video/cx88/cx88-cards.c
@@ -2108,6 +2108,18 @@
 		},
 		.mpeg           = CX88_MPEG_DVB,
 	},
+	[CX88_BOARD_PROF_7301] = {
+		.name           = "Prof 7301 DVB-S/S2",
+		.tuner_type     = UNSET,
+		.radio_type     = UNSET,
+		.tuner_addr     = ADDR_UNSET,
+		.radio_addr     = ADDR_UNSET,
+		.input          = { {
+			.type   = CX88_VMUX_DVB,
+			.vmux   = 0,
+		} },
+		.mpeg           = CX88_MPEG_DVB,
+	},
 };
 
 /* ------------------------------------------------------------------ */
@@ -2568,6 +2580,10 @@
 		.subvendor = 0x107d,
 		.subdevice = 0x6618,
 		.card      = CX88_BOARD_WINFAST_TV2000_XP_GLOBAL,
+	}, {
+		.subvendor = 0xb034,
+		.subdevice = 0x3034,
+		.card      = CX88_BOARD_PROF_7301,
 	},
 };
 
@@ -3244,6 +3260,7 @@
 	case  CX88_BOARD_TBS_8920:
 	case  CX88_BOARD_PROF_6200:
 	case  CX88_BOARD_PROF_7300:
+	case  CX88_BOARD_PROF_7301:
 	case  CX88_BOARD_SATTRADE_ST4200:
 		cx_write(MO_GP0_IO, 0x8000);
 		msleep(100);
linux/drivers/media/video/cx88/cx88-dvb.c +54 -0

78 lines not on this page · raw message

linux/drivers/media/video/cx88/cx88-input.c +2 -0
diff -r e341e9e85af2 -r b7c6748070e3 linux/drivers/media/video/cx88/cx88-input.c
@@ -309,6 +309,7 @@
 	case CX88_BOARD_TBS_8920:
 	case CX88_BOARD_TBS_8910:
 	case CX88_BOARD_PROF_7300:
+	case CX88_BOARD_PROF_7301:
 	case CX88_BOARD_PROF_6200:
 		ir_codes = &ir_codes_tbs_nec_table;
 		ir_type = IR_TYPE_PD;
@@ -462,6 +463,7 @@
 	case CX88_BOARD_TBS_8920:
 	case CX88_BOARD_TBS_8910:
 	case CX88_BOARD_PROF_7300:
+	case CX88_BOARD_PROF_7301:
 	case CX88_BOARD_PROF_6200:
 		ircode = ir_decode_pulsedistance(ir->samples, ir->scount, 1, 4);
 
linux/drivers/media/video/cx88/cx88.h +1 -0
diff -r e341e9e85af2 -r b7c6748070e3 linux/drivers/media/video/cx88/cx88.h
@@ -239,6 +239,7 @@
 #define CX88_BOARD_HAUPPAUGE_IRONLY        80
 #define CX88_BOARD_WINFAST_DTV1800H        81
 #define CX88_BOARD_WINFAST_DTV2000H_J      82
+#define CX88_BOARD_PROF_7301               83
 
 enum cx88_itype {
 	CX88_VMUX_COMPOSITE1 = 1,