aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx23885/cx23885-dvb.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-01-02 01:01:54 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:04:36 -0500
commitf21e0d7f0513e743b14df3197fdeeb9a9b7edbb2 (patch)
treefed91b8a1b032f3ebf827378b0517ceca9d7793a /drivers/media/video/cx23885/cx23885-dvb.c
parent59067f7ed491ec95e6e9033e35e1ae726cff3cee (diff)
V4L/DVB (6962): tda18271: allow device-specific configuration of IF frequency and std bits
Allow drivers to pass device-specific configuration parameters during attach. If these parameters are omitted, default values will be used. 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.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/media/video/cx23885/cx23885-dvb.c b/drivers/media/video/cx23885/cx23885-dvb.c
index 81dd47f6f654..948a7fb7ed06 100644
--- a/drivers/media/video/cx23885/cx23885-dvb.c
+++ b/drivers/media/video/cx23885/cx23885-dvb.c
@@ -183,6 +183,16 @@ static struct tda829x_config tda829x_no_probe = {
183 .probe_tuner = TDA829X_DONT_PROBE, 183 .probe_tuner = TDA829X_DONT_PROBE,
184}; 184};
185 185
186static struct tda18271_std_map hauppauge_tda18271_std_map = {
187 .atsc_6 = { .if_freq = 5380000, .std_bits = 0x1b },
188 .qam_6 = { .if_freq = 4000000, .std_bits = 0x18 },
189};
190
191static struct tda18271_config hauppauge_tda18271_config = {
192 .std_map = &hauppauge_tda18271_std_map,
193 .gate = TDA18271_GATE_ANALOG,
194};
195
186static int cx23885_hvr1500_xc3028_callback(void *ptr, int command, int arg) 196static int cx23885_hvr1500_xc3028_callback(void *ptr, int command, int arg)
187{ 197{
188 struct cx23885_tsport *port = ptr; 198 struct cx23885_tsport *port = ptr;
@@ -248,7 +258,7 @@ static int dvb_register(struct cx23885_tsport *port)
248 &tda829x_no_probe); 258 &tda829x_no_probe);
249 dvb_attach(tda18271_attach, port->dvb.frontend, 259 dvb_attach(tda18271_attach, port->dvb.frontend,
250 0x60, &dev->i2c_bus[1].i2c_adap, 260 0x60, &dev->i2c_bus[1].i2c_adap,
251 TDA18271_GATE_ANALOG); 261 &hauppauge_tda18271_config);
252 } 262 }
253 break; 263 break;
254 case 0: 264 case 0: