aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/dvb-pll.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-05-05 11:15:57 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-07-18 13:23:14 -0400
commit4abe9f9d94e60303c30b1a9bbbc8e6532f6138cb (patch)
treec71ff23ff82c19edadddca9aed2b00b43bf6f18a /drivers/media/dvb/frontends/dvb-pll.c
parent77d675047062d514acdc1bbe9f84658b39f99abe (diff)
V4L/DVB (5633): Tuv1236d: move rf input switching code into dvb-pll
This patch removes duplicate code from cx88-dvb and saa7134-dvb that handles rf input switching for the TUV1236d tuner. The functionality is added to dvb-pll, where all the other code that handles the TUV1236d is kept. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/dvb-pll.c')
-rw-r--r--drivers/media/dvb/frontends/dvb-pll.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/dvb-pll.c b/drivers/media/dvb/frontends/dvb-pll.c
index 0e3195f95756..1363cc8c906e 100644
--- a/drivers/media/dvb/frontends/dvb-pll.c
+++ b/drivers/media/dvb/frontends/dvb-pll.c
@@ -343,11 +343,25 @@ EXPORT_SYMBOL(dvb_pll_tdhu2);
343/* Philips TUV1236D 343/* Philips TUV1236D
344 * used in ATI HDTV Wonder 344 * used in ATI HDTV Wonder
345 */ 345 */
346static void tuv1236d_rf(u8 *buf, const struct dvb_frontend_parameters *params)
347{
348 switch (params->u.vsb.modulation) {
349 case QAM_64:
350 case QAM_256:
351 buf[3] |= 0x08;
352 break;
353 case VSB_8:
354 default:
355 buf[3] &= ~0x08;
356 }
357}
358
346struct dvb_pll_desc dvb_pll_tuv1236d = { 359struct dvb_pll_desc dvb_pll_tuv1236d = {
347 .name = "Philips TUV1236D", 360 .name = "Philips TUV1236D",
348 .min = 54000000, 361 .min = 54000000,
349 .max = 864000000, 362 .max = 864000000,
350 .iffreq= 44000000, 363 .iffreq= 44000000,
364 .set = tuv1236d_rf,
351 .count = 3, 365 .count = 3,
352 .entries = { 366 .entries = {
353 { 157250000, 62500, 0xc6, 0x41 }, 367 { 157250000, 62500, 0xc6, 0x41 },