diff options
author | Steven Toth <stoth@hauppauge.com> | 2007-08-22 20:01:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:08:20 -0400 |
commit | a77743bc2d29197d48a6f4ae9f8f9e0f0b0ba5d7 (patch) | |
tree | 54297211d81fe39bcfab7be65a2ff92339072eda /drivers/media/video/cx23885/cx23885-dvb.c | |
parent | 4823e9ee9f45c78777d040742b5e46336a42c8b3 (diff) |
V4L/DVB (6168): cx23885: Added HVR1250 ATSC support
Adding support for the Hauppauge HVR1250 PCIe ATSC board.
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-dvb.c')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-dvb.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/media/video/cx23885/cx23885-dvb.c b/drivers/media/video/cx23885/cx23885-dvb.c index bd0afc2a0447..63a1dde0d17a 100644 --- a/drivers/media/video/cx23885/cx23885-dvb.c +++ b/drivers/media/video/cx23885/cx23885-dvb.c | |||
@@ -97,6 +97,16 @@ static struct s5h1409_config hauppauge_hvr1800_config = { | |||
97 | .status_mode = S5H1409_DEMODLOCKING | 97 | .status_mode = S5H1409_DEMODLOCKING |
98 | }; | 98 | }; |
99 | 99 | ||
100 | static struct s5h1409_config hauppauge_hvr1250_config = { | ||
101 | .demod_address = 0x32 >> 1, | ||
102 | .output_mode = S5H1409_SERIAL_OUTPUT, | ||
103 | .gpio = S5H1409_GPIO_ON, | ||
104 | .if_freq = 44000, | ||
105 | .inversion = S5H1409_INVERSION_OFF, | ||
106 | .status_mode = S5H1409_DEMODLOCKING | ||
107 | }; | ||
108 | |||
109 | |||
100 | 110 | ||
101 | static struct mt2131_config hauppauge_hvr1800lp_rev2_tunerconfig = { | 111 | static struct mt2131_config hauppauge_hvr1800lp_rev2_tunerconfig = { |
102 | 0x61 | 112 | 0x61 |
@@ -106,6 +116,10 @@ static struct mt2131_config hauppauge_hvr1800_tunerconfig = { | |||
106 | 0x61 | 116 | 0x61 |
107 | }; | 117 | }; |
108 | 118 | ||
119 | static struct mt2131_config hauppauge_hvr1250_tunerconfig = { | ||
120 | 0x61 | ||
121 | }; | ||
122 | |||
109 | static int dvb_register(struct cx23885_tsport *port) | 123 | static int dvb_register(struct cx23885_tsport *port) |
110 | { | 124 | { |
111 | struct cx23885_dev *dev = port->dev; | 125 | struct cx23885_dev *dev = port->dev; |
@@ -115,6 +129,16 @@ static int dvb_register(struct cx23885_tsport *port) | |||
115 | 129 | ||
116 | /* init frontend */ | 130 | /* init frontend */ |
117 | switch (dev->board) { | 131 | switch (dev->board) { |
132 | case CX23885_BOARD_HAUPPAUGE_HVR1250: | ||
133 | port->dvb.frontend = dvb_attach(s5h1409_attach, | ||
134 | &hauppauge_hvr1250_config, | ||
135 | &dev->i2c_bus[0].i2c_adap); | ||
136 | if (port->dvb.frontend != NULL) { | ||
137 | dvb_attach(mt2131_attach, port->dvb.frontend, | ||
138 | &dev->i2c_bus[0].i2c_adap, | ||
139 | &hauppauge_hvr1250_tunerconfig, 0); | ||
140 | } | ||
141 | break; | ||
118 | case CX23885_BOARD_HAUPPAUGE_HVR1800lp: | 142 | case CX23885_BOARD_HAUPPAUGE_HVR1800lp: |
119 | port->dvb.frontend = dvb_attach(s5h1409_attach, | 143 | port->dvb.frontend = dvb_attach(s5h1409_attach, |
120 | &hauppauge_hvr1800lp_config, | 144 | &hauppauge_hvr1800lp_config, |