diff options
author | Patrice Chotard <patrice.chotard@sfr.fr> | 2012-07-31 14:31:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-08-11 22:26:37 -0400 |
commit | 5fb67074c6657edc34867cba78255b6f5b505f12 (patch) | |
tree | 3083dd8cf1f2d097934548cc59743a2cab8320e7 /drivers | |
parent | 743135e7a59b452c2ad526a040e494772af815a9 (diff) |
[media] dvb: add support for Thomson DTT7520X
Add support for Thomson DTT7520X pll needed by
ngene card Terratec Cynergy 2400i DT
Signed-off-by: Patrice Chotard <patricechotard@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/frontends/dvb-pll.c | 26 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/dvb-pll.h | 1 |
2 files changed, 27 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/dvb-pll.c b/drivers/media/dvb/frontends/dvb-pll.c index 1ab34838221c..6d8fe8843237 100644 --- a/drivers/media/dvb/frontends/dvb-pll.c +++ b/drivers/media/dvb/frontends/dvb-pll.c | |||
@@ -116,6 +116,31 @@ static struct dvb_pll_desc dvb_pll_thomson_dtt759x = { | |||
116 | }, | 116 | }, |
117 | }; | 117 | }; |
118 | 118 | ||
119 | static void thomson_dtt7520x_bw(struct dvb_frontend *fe, u8 *buf) | ||
120 | { | ||
121 | u32 bw = fe->dtv_property_cache.bandwidth_hz; | ||
122 | if (bw == 8000000) | ||
123 | buf[3] ^= 0x10; | ||
124 | } | ||
125 | |||
126 | static struct dvb_pll_desc dvb_pll_thomson_dtt7520x = { | ||
127 | .name = "Thomson dtt7520x", | ||
128 | .min = 185000000, | ||
129 | .max = 900000000, | ||
130 | .set = thomson_dtt7520x_bw, | ||
131 | .iffreq = 36166667, | ||
132 | .count = 7, | ||
133 | .entries = { | ||
134 | { 305000000, 166667, 0xb4, 0x12 }, | ||
135 | { 405000000, 166667, 0xbc, 0x12 }, | ||
136 | { 445000000, 166667, 0xbc, 0x12 }, | ||
137 | { 465000000, 166667, 0xf4, 0x18 }, | ||
138 | { 735000000, 166667, 0xfc, 0x18 }, | ||
139 | { 835000000, 166667, 0xbc, 0x18 }, | ||
140 | { 999999999, 166667, 0xfc, 0x18 }, | ||
141 | }, | ||
142 | }; | ||
143 | |||
119 | static struct dvb_pll_desc dvb_pll_lg_z201 = { | 144 | static struct dvb_pll_desc dvb_pll_lg_z201 = { |
120 | .name = "LG z201", | 145 | .name = "LG z201", |
121 | .min = 174000000, | 146 | .min = 174000000, |
@@ -513,6 +538,7 @@ static struct dvb_pll_desc *pll_list[] = { | |||
513 | [DVB_PLL_UNDEFINED] = NULL, | 538 | [DVB_PLL_UNDEFINED] = NULL, |
514 | [DVB_PLL_THOMSON_DTT7579] = &dvb_pll_thomson_dtt7579, | 539 | [DVB_PLL_THOMSON_DTT7579] = &dvb_pll_thomson_dtt7579, |
515 | [DVB_PLL_THOMSON_DTT759X] = &dvb_pll_thomson_dtt759x, | 540 | [DVB_PLL_THOMSON_DTT759X] = &dvb_pll_thomson_dtt759x, |
541 | [DVB_PLL_THOMSON_DTT7520X] = &dvb_pll_thomson_dtt7520x, | ||
516 | [DVB_PLL_LG_Z201] = &dvb_pll_lg_z201, | 542 | [DVB_PLL_LG_Z201] = &dvb_pll_lg_z201, |
517 | [DVB_PLL_UNKNOWN_1] = &dvb_pll_unknown_1, | 543 | [DVB_PLL_UNKNOWN_1] = &dvb_pll_unknown_1, |
518 | [DVB_PLL_TUA6010XS] = &dvb_pll_tua6010xs, | 544 | [DVB_PLL_TUA6010XS] = &dvb_pll_tua6010xs, |
diff --git a/drivers/media/dvb/frontends/dvb-pll.h b/drivers/media/dvb/frontends/dvb-pll.h index 086964344c38..4de754f76ce9 100644 --- a/drivers/media/dvb/frontends/dvb-pll.h +++ b/drivers/media/dvb/frontends/dvb-pll.h | |||
@@ -27,6 +27,7 @@ | |||
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 | #define DVB_PLL_TDEE4 18 |
30 | #define DVB_PLL_THOMSON_DTT7520X 19 | ||
30 | 31 | ||
31 | /** | 32 | /** |
32 | * Attach a dvb-pll to the supplied frontend structure. | 33 | * Attach a dvb-pll to the supplied frontend structure. |