diff options
author | Devin Heitmueller <dheitmueller@kernellabs.com> | 2009-12-27 15:44:31 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 16:52:31 -0400 |
commit | 2df12510f97664b740a94cd7fd816460c55ce29b (patch) | |
tree | 8e1287adb6e033d2d18a9f2ee3df4c1640243241 /drivers/media/dvb | |
parent | ed23db32271997e03ea59d31839a40470a1c434b (diff) |
[media] dib0700: make PCTV 340e work!
Fixup the PLL and AGC configs so that the 340e works (correcting errors I made
when I did the original config blindly).
Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/dvb-usb/dib0700_devices.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/media/dvb/dvb-usb/dib0700_devices.c b/drivers/media/dvb/dvb-usb/dib0700_devices.c index 790fca63248a..cc962892fd1e 100644 --- a/drivers/media/dvb/dvb-usb/dib0700_devices.c +++ b/drivers/media/dvb/dvb-usb/dib0700_devices.c | |||
@@ -2729,6 +2729,7 @@ static struct dibx000_agc_config stk7700p_7000p_xc4000_agc_config = { | |||
2729 | .agc2_pt2 = 0x80, | 2729 | .agc2_pt2 = 0x80, |
2730 | .agc2_slope1 = 0x1d, | 2730 | .agc2_slope1 = 0x1d, |
2731 | .agc2_slope2 = 0x1d, | 2731 | .agc2_slope2 = 0x1d, |
2732 | .alpha_mant = 0x11, | ||
2732 | .alpha_exp = 0x1b, | 2733 | .alpha_exp = 0x1b, |
2733 | .beta_mant = 0x17, | 2734 | .beta_mant = 0x17, |
2734 | .beta_exp = 0x33, | 2735 | .beta_exp = 0x33, |
@@ -2738,10 +2739,10 @@ static struct dibx000_agc_config stk7700p_7000p_xc4000_agc_config = { | |||
2738 | /* validation: | 2739 | /* validation: |
2739 | reg 900 (0x0384) = 0x0e60 | 2740 | reg 900 (0x0384) = 0x0e60 |
2740 | reg 903 (0x0387) = 0x0027 | 2741 | reg 903 (0x0387) = 0x0027 |
2741 | reg 18 (0x0012) = 0x0321 | 2742 | reg 18 (0x0012) = 0x0321 (0393) |
2742 | reg 19 (0x0013) = 0x1620 | 2743 | reg 19 (0x0013) = 0x1620 (8700) |
2743 | reg 21 (0x0015) = 0x0265 | 2744 | reg 21 (0x0015) = 0x0265 (0258) |
2744 | reg 22 (0x0016) = 0x6cbd | 2745 | reg 22 (0x0016) = 0x6cbd (bf26) |
2745 | reg 23 (0x0017) = 0x0138 | 2746 | reg 23 (0x0017) = 0x0138 |
2746 | reg 24 (0x0018) = 0x1381 | 2747 | reg 24 (0x0018) = 0x1381 |
2747 | reg 72 (0x0048) = 0xd257 | 2748 | reg 72 (0x0048) = 0xd257 |
@@ -2766,11 +2767,11 @@ static struct dibx000_agc_config stk7700p_7000p_xc4000_agc_config = { | |||
2766 | xtal_hz = ? (val dependent on exact tuning freq) | 2767 | xtal_hz = ? (val dependent on exact tuning freq) |
2767 | */ | 2768 | */ |
2768 | static struct dibx000_bandwidth_config stk7700p_xc4000_pll_config = { | 2769 | static struct dibx000_bandwidth_config stk7700p_xc4000_pll_config = { |
2769 | 52500, 30000, // internal, sampling | 2770 | 60000, 30000, // internal, sampling |
2770 | 1, 7, 3, 1, 0, // pll_cfg: prediv, ratio, range, reset, bypass | 2771 | 1, 8, 3, 1, 0, // pll_cfg: prediv, ratio, range, reset, bypass |
2771 | 0, 0, 1, 1, 0, // misc: refdiv, bypclk_div, IO_CLK_en_core, ADClkSrc, modulo | 2772 | 0, 0, 1, 1, 0, // misc: refdiv, bypclk_div, IO_CLK_en_core, ADClkSrc, modulo |
2772 | (3 << 14) | (1 << 12) | (599 << 0), // sad_cfg: refsel, sel, freq_15k | 2773 | (3 << 14) | (1 << 12) | (524 << 0), // sad_cfg: refsel, sel, freq_15k |
2773 | 40201405, // ifreq | 2774 | 39370534, // ifreq |
2774 | 20452225, // timf | 2775 | 20452225, // timf |
2775 | 30000000, // xtal | 2776 | 30000000, // xtal |
2776 | }; | 2777 | }; |