diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-10 06:33:23 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-16 20:27:51 -0400 |
commit | 6189f80d5d6ae58b7262a0908cabf7858397711f (patch) | |
tree | 5624d51c97f9233e3b278e4b11e348229a95c1fa /drivers/media/tuners/r820t.c | |
parent | 103fe2fb2314f09d9b923c5919e70cbe66830d6d (diff) |
[media] r820t: use the second table for 7MHz
The Realtek Kernel driver uses the second DVB-T 7MHz table instead
of the first one. Use it as well.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Tested-by: Antti Palosaari <crope@iki.fi>
Diffstat (limited to 'drivers/media/tuners/r820t.c')
-rw-r--r-- | drivers/media/tuners/r820t.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/media/tuners/r820t.c b/drivers/media/tuners/r820t.c index 79ab2b74bd52..1880807e3e8d 100644 --- a/drivers/media/tuners/r820t.c +++ b/drivers/media/tuners/r820t.c | |||
@@ -915,6 +915,14 @@ static int r820t_set_tv_standard(struct r820t_priv *priv, | |||
915 | flt_ext_widest = 0x00; /* r15[7]: flt_ext_wide off */ | 915 | flt_ext_widest = 0x00; /* r15[7]: flt_ext_wide off */ |
916 | polyfil_cur = 0x60; /* r25[6:5]:min */ | 916 | polyfil_cur = 0x60; /* r25[6:5]:min */ |
917 | } else if (bw == 7) { | 917 | } else if (bw == 7) { |
918 | #if 0 | ||
919 | /* | ||
920 | * There are two 7 MHz tables defined on the original | ||
921 | * driver, but just the second one seems to be visible | ||
922 | * by rtl2832. Keep this one here commented, as it | ||
923 | * might be needed in the future | ||
924 | */ | ||
925 | |||
918 | if_khz = 4070; | 926 | if_khz = 4070; |
919 | filt_cal_lo = 60000; | 927 | filt_cal_lo = 60000; |
920 | filt_gain = 0x10; /* +3db, 6mhz on */ | 928 | filt_gain = 0x10; /* +3db, 6mhz on */ |
@@ -926,7 +934,8 @@ static int r820t_set_tv_standard(struct r820t_priv *priv, | |||
926 | lt_att = 0x00; /* r31[7], lt att enable */ | 934 | lt_att = 0x00; /* r31[7], lt att enable */ |
927 | flt_ext_widest = 0x00; /* r15[7]: flt_ext_wide off */ | 935 | flt_ext_widest = 0x00; /* r15[7]: flt_ext_wide off */ |
928 | polyfil_cur = 0x60; /* r25[6:5]:min */ | 936 | polyfil_cur = 0x60; /* r25[6:5]:min */ |
929 | #if 0 /* 7 MHz type 2 - nor sure why/where this is used - Perhaps Australia? */ | 937 | #endif |
938 | /* 7 MHz, second table */ | ||
930 | if_khz = 4570; | 939 | if_khz = 4570; |
931 | filt_cal_lo = 63000; | 940 | filt_cal_lo = 63000; |
932 | filt_gain = 0x10; /* +3db, 6mhz on */ | 941 | filt_gain = 0x10; /* +3db, 6mhz on */ |
@@ -938,7 +947,6 @@ static int r820t_set_tv_standard(struct r820t_priv *priv, | |||
938 | lt_att = 0x00; /* r31[7], lt att enable */ | 947 | lt_att = 0x00; /* r31[7], lt att enable */ |
939 | flt_ext_widest = 0x00; /* r15[7]: flt_ext_wide off */ | 948 | flt_ext_widest = 0x00; /* r15[7]: flt_ext_wide off */ |
940 | polyfil_cur = 0x60; /* r25[6:5]:min */ | 949 | polyfil_cur = 0x60; /* r25[6:5]:min */ |
941 | #endif | ||
942 | } else { | 950 | } else { |
943 | if_khz = 4570; | 951 | if_khz = 4570; |
944 | filt_cal_lo = 68500; | 952 | filt_cal_lo = 68500; |