diff options
author | Michael Krufky <mkrufky@kernellabs.com> | 2009-09-15 22:04:18 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-18 23:16:01 -0400 |
commit | 93463895ae0a87b689d71d65c44d5ccdcd950dc4 (patch) | |
tree | e5c1acb0b51665264e08a2e025915ead5c5cb941 /drivers/media/video/tuner-core.c | |
parent | eb3b2d89bcd7bbdcff46f427d0f6f85c9e88701d (diff) |
V4L/DVB (12964): tuner-core: add support for NXP TDA18271 without TDA829X demod
Add support for NXP TDA18271 as a standalone tuner, allowing the use of
analog demodulators other than the Philips/NXP TDA829x.
Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/tuner-core.c')
-rw-r--r-- | drivers/media/video/tuner-core.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index 2816f1839230..aba92e2313d8 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include "tuner-simple.h" | 29 | #include "tuner-simple.h" |
30 | #include "tda9887.h" | 30 | #include "tda9887.h" |
31 | #include "xc5000.h" | 31 | #include "xc5000.h" |
32 | #include "tda18271.h" | ||
32 | 33 | ||
33 | #define UNSET (-1U) | 34 | #define UNSET (-1U) |
34 | 35 | ||
@@ -420,6 +421,17 @@ static void set_type(struct i2c_client *c, unsigned int type, | |||
420 | goto attach_failed; | 421 | goto attach_failed; |
421 | break; | 422 | break; |
422 | } | 423 | } |
424 | case TUNER_NXP_TDA18271: | ||
425 | { | ||
426 | struct tda18271_config cfg = { | ||
427 | .config = t->config, | ||
428 | }; | ||
429 | |||
430 | if (!dvb_attach(tda18271_attach, &t->fe, t->i2c->addr, | ||
431 | t->i2c->adapter, &cfg)) | ||
432 | goto attach_failed; | ||
433 | break; | ||
434 | } | ||
423 | default: | 435 | default: |
424 | if (!dvb_attach(simple_tuner_attach, &t->fe, | 436 | if (!dvb_attach(simple_tuner_attach, &t->fe, |
425 | t->i2c->adapter, t->i2c->addr, t->type)) | 437 | t->i2c->adapter, t->i2c->addr, t->type)) |