diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-05-05 11:15:57 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2007-05-05 11:15:57 -0400 |
commit | a9131e180377070115d9d7d1aa4e76c5906a81fd (patch) | |
tree | c64a2929257f533215923206f999d15785962700 /linux/drivers/media/dvb/frontends/dvb-pll.c | |
parent | 9e77d37f02dfdf40e28145025105c9b0d8466a21 (diff) | |
download | mediapointer-dvb-s2-a9131e180377070115d9d7d1aa4e76c5906a81fd.tar.gz mediapointer-dvb-s2-a9131e180377070115d9d7d1aa4e76c5906a81fd.tar.bz2 |
tuv1236d: move rf input switching code into dvb-pll
From: Michael Krufky <mkrufky@linuxtv.org>
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>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/dvb-pll.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/dvb-pll.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/dvb-pll.c b/linux/drivers/media/dvb/frontends/dvb-pll.c index 0e3195f95..1363cc8c9 100644 --- a/linux/drivers/media/dvb/frontends/dvb-pll.c +++ b/linux/drivers/media/dvb/frontends/dvb-pll.c @@ -343,11 +343,25 @@ EXPORT_SYMBOL(dvb_pll_tdhu2); /* Philips TUV1236D * used in ATI HDTV Wonder */ +static void tuv1236d_rf(u8 *buf, const struct dvb_frontend_parameters *params) +{ + switch (params->u.vsb.modulation) { + case QAM_64: + case QAM_256: + buf[3] |= 0x08; + break; + case VSB_8: + default: + buf[3] &= ~0x08; + } +} + struct dvb_pll_desc dvb_pll_tuv1236d = { .name = "Philips TUV1236D", .min = 54000000, .max = 864000000, .iffreq= 44000000, + .set = tuv1236d_rf, .count = 3, .entries = { { 157250000, 62500, 0xc6, 0x41 }, |