diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2009-06-11 18:24:00 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-12 11:17:50 -0400 |
commit | d799ce570871bcb3f035e753a5bb3814f9530681 (patch) | |
tree | 6ef587935f93b86d03d7dd23caa4b3967d4d3a12 | |
parent | 9d5d75a9eb85d49dc539ce0beb184754e0bad60d (diff) |
V4L/DVB (12290): dvb-pll: Add support for Alps TDEE4 DVB-C NIM
No datasheet, data take from code in flexcop driver. That code rounded
down the divisor rather than rounding to nearest, which was probably not
intentional and the dvb-pll code will round to nearest.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/dvb/frontends/dvb-pll.c | 24 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/dvb-pll.h | 1 |
2 files changed, 25 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/dvb-pll.c b/drivers/media/dvb/frontends/dvb-pll.c index 587ad1bd9b1..6d865d6161d 100644 --- a/drivers/media/dvb/frontends/dvb-pll.c +++ b/drivers/media/dvb/frontends/dvb-pll.c | |||
@@ -437,6 +437,29 @@ static struct dvb_pll_desc dvb_pll_samsung_tbmu24112 = { | |||
437 | } | 437 | } |
438 | }; | 438 | }; |
439 | 439 | ||
440 | /* Alps TDEE4 DVB-C NIM, used on Cablestar 2 */ | ||
441 | /* byte 4 : 1 * * AGD R3 R2 R1 R0 | ||
442 | * byte 5 : C1 * RE RTS BS4 BS3 BS2 BS1 | ||
443 | * AGD = 1, R3 R2 R1 R0 = 0 1 0 1 => byte 4 = 1**10101 = 0x95 | ||
444 | * Range(MHz) C1 * RE RTS BS4 BS3 BS2 BS1 Byte 5 | ||
445 | * 47 - 153 0 * 0 0 0 0 0 1 0x01 | ||
446 | * 153 - 430 0 * 0 0 0 0 1 0 0x02 | ||
447 | * 430 - 822 0 * 0 0 1 0 0 0 0x08 | ||
448 | * 822 - 862 1 * 0 0 1 0 0 0 0x88 */ | ||
449 | static struct dvb_pll_desc dvb_pll_alps_tdee4 = { | ||
450 | .name = "ALPS TDEE4", | ||
451 | .min = 47000000, | ||
452 | .max = 862000000, | ||
453 | .iffreq = 36125000, | ||
454 | .count = 4, | ||
455 | .entries = { | ||
456 | { 153000000, 62500, 0x95, 0x01 }, | ||
457 | { 430000000, 62500, 0x95, 0x02 }, | ||
458 | { 822000000, 62500, 0x95, 0x08 }, | ||
459 | { 999999999, 62500, 0x95, 0x88 }, | ||
460 | } | ||
461 | }; | ||
462 | |||
440 | /* ----------------------------------------------------------- */ | 463 | /* ----------------------------------------------------------- */ |
441 | 464 | ||
442 | static struct dvb_pll_desc *pll_list[] = { | 465 | static struct dvb_pll_desc *pll_list[] = { |
@@ -450,6 +473,7 @@ static struct dvb_pll_desc *pll_list[] = { | |||
450 | [DVB_PLL_TUA6034] = &dvb_pll_tua6034, | 473 | [DVB_PLL_TUA6034] = &dvb_pll_tua6034, |
451 | [DVB_PLL_TDA665X] = &dvb_pll_tda665x, | 474 | [DVB_PLL_TDA665X] = &dvb_pll_tda665x, |
452 | [DVB_PLL_TDED4] = &dvb_pll_tded4, | 475 | [DVB_PLL_TDED4] = &dvb_pll_tded4, |
476 | [DVB_PLL_TDEE4] = &dvb_pll_alps_tdee4, | ||
453 | [DVB_PLL_TDHU2] = &dvb_pll_tdhu2, | 477 | [DVB_PLL_TDHU2] = &dvb_pll_tdhu2, |
454 | [DVB_PLL_SAMSUNG_TBMV] = &dvb_pll_samsung_tbmv, | 478 | [DVB_PLL_SAMSUNG_TBMV] = &dvb_pll_samsung_tbmv, |
455 | [DVB_PLL_PHILIPS_SD1878_TDA8261] = &dvb_pll_philips_sd1878_tda8261, | 479 | [DVB_PLL_PHILIPS_SD1878_TDA8261] = &dvb_pll_philips_sd1878_tda8261, |
diff --git a/drivers/media/dvb/frontends/dvb-pll.h b/drivers/media/dvb/frontends/dvb-pll.h index c1035812c9e..086964344c3 100644 --- a/drivers/media/dvb/frontends/dvb-pll.h +++ b/drivers/media/dvb/frontends/dvb-pll.h | |||
@@ -26,6 +26,7 @@ | |||
26 | #define DVB_PLL_SAMSUNG_TDTC9251DH0 15 | 26 | #define DVB_PLL_SAMSUNG_TDTC9251DH0 15 |
27 | #define DVB_PLL_SAMSUNG_TBDU18132 16 | 27 | #define DVB_PLL_SAMSUNG_TBDU18132 16 |
28 | #define DVB_PLL_SAMSUNG_TBMU24112 17 | 28 | #define DVB_PLL_SAMSUNG_TBMU24112 17 |
29 | #define DVB_PLL_TDEE4 18 | ||
29 | 30 | ||
30 | /** | 31 | /** |
31 | * Attach a dvb-pll to the supplied frontend structure. | 32 | * Attach a dvb-pll to the supplied frontend structure. |