Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6e53daf authored by Thomas Genty's avatar Thomas Genty Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (4806): Saa7134: add support for Hauppauge WinTV-HVR1110 DVB-T/Hybrid



This patch adds support for the Hauppauge WinTV-HVR1110 DVB-T/Hybrid

Signed-off-by: default avatarThomas Genty <tomlohave@gmail.com>
Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 8637a875
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -102,3 +102,4 @@
101 -> Pinnacle PCTV 310i                       [11bd:002f]
102 -> Avermedia AVerTV Studio 507              [1461:9715]
103 -> Compro Videomate DVB-T200A
104 -> Hauppauge WinTV-HVR1110 DVB-T/Hybrid     [0070:6701]
+29 −0
Original line number Diff line number Diff line
@@ -3126,6 +3126,28 @@ struct saa7134_board saa7134_boards[] = {
			.amux   = LINE2,
		}},
	},
	[SAA7134_BOARD_HAUPPAUGE_HVR1110] = {
		/* Thomas Genty <tomlohave@gmail.com> */
		.name           = "Hauppauge WinTV-HVR1110 DVB-T/Hybrid",
		.audio_clock    = 0x00187de7,
		.tuner_type     = TUNER_PHILIPS_TDA8290,
		.radio_type     = UNSET,
		.tuner_addr     = ADDR_UNSET,
		.radio_addr     = ADDR_UNSET,
		.mpeg           = SAA7134_MPEG_DVB,
		.gpiomask       = 0x000200000,
		.inputs         = {{
			.name = name_tv,
			.vmux = 1,
			.amux = TV,
			.tv   = 1,
		}},
		.radio = {
			.name = name_radio,
			.amux   = TV,
			.gpio   = 0x0200000,
		},
	},
};

const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards);
@@ -3752,6 +3774,12 @@ struct pci_device_id saa7134_pci_tbl[] = {
		.subvendor    = 0x1043,
		.subdevice    = 0x4876,
		.driver_data  = SAA7134_BOARD_ASUSTeK_P7131_DUAL,
	},{
		.vendor       = PCI_VENDOR_ID_PHILIPS,
		.device       = PCI_DEVICE_ID_PHILIPS_SAA7133,
		.subvendor    = 0x0070,
		.subdevice    = 0x6701,
		.driver_data  = SAA7134_BOARD_HAUPPAUGE_HVR1110,
	},{
		/* --- boards without eeprom + subsystem ID --- */
		.vendor       = PCI_VENDOR_ID_PHILIPS,
@@ -4053,6 +4081,7 @@ int saa7134_board_init2(struct saa7134_dev *dev)
	case SAA7134_BOARD_TEVION_DVBT_220RF:
	case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
	case SAA7134_BOARD_MEDION_MD8800_QUADRO:
	case SAA7134_BOARD_HAUPPAUGE_HVR1110:
		/* this is a hybrid board, initialize to analog mode
		 * and configure firmware eeprom address
		 */
+23 −0
Original line number Diff line number Diff line
@@ -900,6 +900,18 @@ static struct tda1004x_config pinnacle_pctv_310i_config = {

/* ------------------------------------------------------------------ */

static struct tda1004x_config hauppauge_hvr_1110_config = {
	.demod_address = 0x08,
	.invert        = 1,
	.invert_oclk   = 0,
	.xtal_freq     = TDA10046_XTAL_16M,
	.agc_config    = TDA10046_AGC_TDA827X,
	.if_freq       = TDA10046_FREQ_045,
	.request_firmware = philips_tda1004x_request_firmware,
};

/* ------------------------------------------------------------------ */

static struct tda1004x_config asus_p7131_dual_config = {
	.demod_address = 0x08,
	.invert        = 1,
@@ -1221,6 +1233,17 @@ static int dvb_init(struct saa7134_dev *dev)
			dev->dvb.frontend->ops.tuner_ops.set_params = philips_tiger_tuner_set_params;
		}
		break;
	case SAA7134_BOARD_HAUPPAUGE_HVR1110:
		dev->dvb.frontend = dvb_attach(tda10046_attach,
					       &hauppauge_hvr_1110_config,
					       &dev->i2c_adap);
		if (dev->dvb.frontend) {
			dev->dvb.frontend->ops.i2c_gate_ctrl = tda8290_i2c_gate_ctrl;
			dev->dvb.frontend->ops.tuner_ops.init = philips_tiger_tuner_init;
			dev->dvb.frontend->ops.tuner_ops.sleep = philips_tiger_tuner_sleep;
			dev->dvb.frontend->ops.tuner_ops.set_params = philips_tiger_tuner_set_params;
		}
		break;
	case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
		dev->dvb.frontend = dvb_attach(tda10046_attach,
					       &asus_p7131_dual_config,
+1 −0
Original line number Diff line number Diff line
@@ -230,6 +230,7 @@ struct saa7134_format {
#define SAA7134_BOARD_PINNACLE_PCTV_310i  101
#define SAA7134_BOARD_AVERMEDIA_STUDIO_507 102
#define SAA7134_BOARD_VIDEOMATE_DVBT_200A  103
#define SAA7134_BOARD_HAUPPAUGE_HVR1110 104

#define SAA7134_MAXBOARDS 8
#define SAA7134_INPUT_MAX 8