aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2013-03-01 13:20:25 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-04 14:34:05 -0500
commit17e67d4c7fb7515ce98d3eb5de00c2575800818b (patch)
treeb2d5a012d4220a4d2230130fcc05a75b84271cf0
parent0921ecfdc2b93ebbe8f2371dac634d91e4fbdf60 (diff)
[media] mb86a20s: change AGC tuning parameters
Use the AGC settings present on a newer device. The initial settings were taken from one of the first devices with mb86a20s, and there are several reports that this is not working properly on some places. So, instead of keeping using it, get the parameters taken from a newer device. Tests are welcomed. Tested also with cx231xx PixelView SBTVD Hybrid with no regressions noticed so far. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb-core/dmxdev.c3
-rw-r--r--drivers/media/dvb-frontends/mb86a20s.c86
2 files changed, 46 insertions, 43 deletions
diff --git a/drivers/media/dvb-core/dmxdev.c b/drivers/media/dvb-core/dmxdev.c
index d81dbb22aa81..8896993e631f 100644
--- a/drivers/media/dvb-core/dmxdev.c
+++ b/drivers/media/dvb-core/dmxdev.c
@@ -852,7 +852,8 @@ static int dvb_dmxdev_filter_set(struct dmxdev *dmxdev,
852 struct dmxdev_filter *dmxdevfilter, 852 struct dmxdev_filter *dmxdevfilter,
853 struct dmx_sct_filter_params *params) 853 struct dmx_sct_filter_params *params)
854{ 854{
855 dprintk("function : %s\n", __func__); 855 dprintk("function : %s, PID=0x%04x, flags=%02x, timeout=%d\n",
856 __func__, params->pid, params->flags, params->timeout);
856 857
857 dvb_dmxdev_filter_stop(dmxdevfilter); 858 dvb_dmxdev_filter_stop(dmxdevfilter);
858 859
diff --git a/drivers/media/dvb-frontends/mb86a20s.c b/drivers/media/dvb-frontends/mb86a20s.c
index 9948fcbf1596..68a88180b631 100644
--- a/drivers/media/dvb-frontends/mb86a20s.c
+++ b/drivers/media/dvb-frontends/mb86a20s.c
@@ -55,7 +55,7 @@ static struct regdata mb86a20s_init1[] = {
55 { 0x70, 0xff }, 55 { 0x70, 0xff },
56 { 0x08, 0x01 }, 56 { 0x08, 0x01 },
57 { 0x09, 0x3e }, 57 { 0x09, 0x3e },
58 { 0x50, 0xd1 }, { 0x51, 0x22 }, 58 { 0x50, 0xd1 }, { 0x51, 0x20 },
59 { 0x39, 0x01 }, 59 { 0x39, 0x01 },
60 { 0x71, 0x00 }, 60 { 0x71, 0x00 },
61 { 0x28, 0x2a }, { 0x29, 0x00 }, { 0x2a, 0xff }, { 0x2b, 0x80 }, 61 { 0x28, 0x2a }, { 0x29, 0x00 }, { 0x2a, 0xff }, { 0x2b, 0x80 },
@@ -64,23 +64,23 @@ static struct regdata mb86a20s_init1[] = {
64static struct regdata mb86a20s_init2[] = { 64static struct regdata mb86a20s_init2[] = {
65 { 0x28, 0x22 }, { 0x29, 0x00 }, { 0x2a, 0x1f }, { 0x2b, 0xf0 }, 65 { 0x28, 0x22 }, { 0x29, 0x00 }, { 0x2a, 0x1f }, { 0x2b, 0xf0 },
66 { 0x3b, 0x21 }, 66 { 0x3b, 0x21 },
67 { 0x3c, 0x3a }, 67 { 0x3c, 0x38 },
68 { 0x01, 0x0d }, 68 { 0x01, 0x0d },
69 { 0x04, 0x08 }, { 0x05, 0x05 }, 69 { 0x04, 0x08 }, { 0x05, 0x03 },
70 { 0x04, 0x0e }, { 0x05, 0x00 }, 70 { 0x04, 0x0e }, { 0x05, 0x00 },
71 { 0x04, 0x0f }, { 0x05, 0x14 }, 71 { 0x04, 0x0f }, { 0x05, 0x37 },
72 { 0x04, 0x0b }, { 0x05, 0x8c }, 72 { 0x04, 0x0b }, { 0x05, 0x78 },
73 { 0x04, 0x00 }, { 0x05, 0x00 }, 73 { 0x04, 0x00 }, { 0x05, 0x00 },
74 { 0x04, 0x01 }, { 0x05, 0x07 }, 74 { 0x04, 0x01 }, { 0x05, 0x1e },
75 { 0x04, 0x02 }, { 0x05, 0x0f }, 75 { 0x04, 0x02 }, { 0x05, 0x07 },
76 { 0x04, 0x03 }, { 0x05, 0xa0 }, 76 { 0x04, 0x03 }, { 0x05, 0xd0 },
77 { 0x04, 0x09 }, { 0x05, 0x00 }, 77 { 0x04, 0x09 }, { 0x05, 0x00 },
78 { 0x04, 0x0a }, { 0x05, 0xff }, 78 { 0x04, 0x0a }, { 0x05, 0xff },
79 { 0x04, 0x27 }, { 0x05, 0x64 }, 79 { 0x04, 0x27 }, { 0x05, 0x00 },
80 { 0x04, 0x28 }, { 0x05, 0x00 }, 80 { 0x04, 0x28 }, { 0x05, 0x00 },
81 { 0x04, 0x1e }, { 0x05, 0xff }, 81 { 0x04, 0x1e }, { 0x05, 0x00 },
82 { 0x04, 0x29 }, { 0x05, 0x0a }, 82 { 0x04, 0x29 }, { 0x05, 0x64 },
83 { 0x04, 0x32 }, { 0x05, 0x0a }, 83 { 0x04, 0x32 }, { 0x05, 0x02 },
84 { 0x04, 0x14 }, { 0x05, 0x02 }, 84 { 0x04, 0x14 }, { 0x05, 0x02 },
85 { 0x04, 0x04 }, { 0x05, 0x00 }, 85 { 0x04, 0x04 }, { 0x05, 0x00 },
86 { 0x04, 0x05 }, { 0x05, 0x22 }, 86 { 0x04, 0x05 }, { 0x05, 0x22 },
@@ -147,39 +147,39 @@ static struct regdata mb86a20s_init2[] = {
147 { 0x50, 0xd5 }, { 0x51, 0x01 }, /* Serial */ 147 { 0x50, 0xd5 }, { 0x51, 0x01 }, /* Serial */
148 { 0x50, 0xd6 }, { 0x51, 0x1f }, 148 { 0x50, 0xd6 }, { 0x51, 0x1f },
149 { 0x50, 0xd2 }, { 0x51, 0x03 }, 149 { 0x50, 0xd2 }, { 0x51, 0x03 },
150 { 0x50, 0xd7 }, { 0x51, 0x3f }, 150 { 0x50, 0xd7 }, { 0x51, 0xbf },
151 { 0x28, 0x74 }, { 0x29, 0x00 }, { 0x28, 0x74 }, { 0x29, 0x40 }, 151 { 0x28, 0x74 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0xff },
152 { 0x28, 0x46 }, { 0x29, 0x2c }, { 0x28, 0x46 }, { 0x29, 0x0c }, 152 { 0x28, 0x46 }, { 0x29, 0x00 }, { 0x2a, 0x1a }, { 0x2b, 0x0c },
153 153
154 { 0x04, 0x40 }, { 0x05, 0x00 }, 154 { 0x04, 0x40 }, { 0x05, 0x00 },
155 { 0x28, 0x00 }, { 0x29, 0x10 }, 155 { 0x28, 0x00 }, { 0x2b, 0x08 },
156 { 0x28, 0x05 }, { 0x29, 0x02 }, 156 { 0x28, 0x05 }, { 0x2b, 0x00 },
157 { 0x1c, 0x01 }, 157 { 0x1c, 0x01 },
158 { 0x28, 0x06 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x03 }, 158 { 0x28, 0x06 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x1f },
159 { 0x28, 0x07 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x0d }, 159 { 0x28, 0x07 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x18 },
160 { 0x28, 0x08 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x02 }, 160 { 0x28, 0x08 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x12 },
161 { 0x28, 0x09 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x01 }, 161 { 0x28, 0x09 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x30 },
162 { 0x28, 0x0a }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x21 }, 162 { 0x28, 0x0a }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x37 },
163 { 0x28, 0x0b }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x29 }, 163 { 0x28, 0x0b }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x02 },
164 { 0x28, 0x0c }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x16 }, 164 { 0x28, 0x0c }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x09 },
165 { 0x28, 0x0d }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x31 }, 165 { 0x28, 0x0d }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x06 },
166 { 0x28, 0x0e }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x0e }, 166 { 0x28, 0x0e }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x7b },
167 { 0x28, 0x0f }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x4e }, 167 { 0x28, 0x0f }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x76 },
168 { 0x28, 0x10 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x46 }, 168 { 0x28, 0x10 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x7d },
169 { 0x28, 0x11 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x0f }, 169 { 0x28, 0x11 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x08 },
170 { 0x28, 0x12 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x56 }, 170 { 0x28, 0x12 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x0b },
171 { 0x28, 0x13 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x35 }, 171 { 0x28, 0x13 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x00 },
172 { 0x28, 0x14 }, { 0x29, 0x00 }, { 0x2a, 0x01 }, { 0x2b, 0xbe }, 172 { 0x28, 0x14 }, { 0x29, 0x00 }, { 0x2a, 0x01 }, { 0x2b, 0xf2 },
173 { 0x28, 0x15 }, { 0x29, 0x00 }, { 0x2a, 0x01 }, { 0x2b, 0x84 }, 173 { 0x28, 0x15 }, { 0x29, 0x00 }, { 0x2a, 0x01 }, { 0x2b, 0xf3 },
174 { 0x28, 0x16 }, { 0x29, 0x00 }, { 0x2a, 0x03 }, { 0x2b, 0xee }, 174 { 0x28, 0x16 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x05 },
175 { 0x28, 0x17 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x98 }, 175 { 0x28, 0x17 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x16 },
176 { 0x28, 0x18 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x9f }, 176 { 0x28, 0x18 }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x0f },
177 { 0x28, 0x19 }, { 0x29, 0x00 }, { 0x2a, 0x07 }, { 0x2b, 0xb2 }, 177 { 0x28, 0x19 }, { 0x29, 0x00 }, { 0x2a, 0x07 }, { 0x2b, 0xef },
178 { 0x28, 0x1a }, { 0x29, 0x00 }, { 0x2a, 0x06 }, { 0x2b, 0xc2 }, 178 { 0x28, 0x1a }, { 0x29, 0x00 }, { 0x2a, 0x07 }, { 0x2b, 0xd8 },
179 { 0x28, 0x1b }, { 0x29, 0x00 }, { 0x2a, 0x07 }, { 0x2b, 0x4a }, 179 { 0x28, 0x1b }, { 0x29, 0x00 }, { 0x2a, 0x07 }, { 0x2b, 0xf1 },
180 { 0x28, 0x1c }, { 0x29, 0x00 }, { 0x2a, 0x01 }, { 0x2b, 0xbc }, 180 { 0x28, 0x1c }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x3d },
181 { 0x28, 0x1d }, { 0x29, 0x00 }, { 0x2a, 0x04 }, { 0x2b, 0xba }, 181 { 0x28, 0x1d }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x94 },
182 { 0x28, 0x1e }, { 0x29, 0x00 }, { 0x2a, 0x06 }, { 0x2b, 0x14 }, 182 { 0x28, 0x1e }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0xba },
183 { 0x50, 0x1e }, { 0x51, 0x5d }, 183 { 0x50, 0x1e }, { 0x51, 0x5d },
184 { 0x50, 0x22 }, { 0x51, 0x00 }, 184 { 0x50, 0x22 }, { 0x51, 0x00 },
185 { 0x50, 0x23 }, { 0x51, 0xc8 }, 185 { 0x50, 0x23 }, { 0x51, 0xc8 },
@@ -188,6 +188,8 @@ static struct regdata mb86a20s_init2[] = {
188 { 0x50, 0x26 }, { 0x51, 0x00 }, 188 { 0x50, 0x26 }, { 0x51, 0x00 },
189 { 0x50, 0x27 }, { 0x51, 0xc3 }, 189 { 0x50, 0x27 }, { 0x51, 0xc3 },
190 { 0x50, 0x39 }, { 0x51, 0x02 }, 190 { 0x50, 0x39 }, { 0x51, 0x02 },
191 { 0xec, 0x0f },
192 { 0xeb, 0x1f },
191 { 0x28, 0x6a }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x00 }, 193 { 0x28, 0x6a }, { 0x29, 0x00 }, { 0x2a, 0x00 }, { 0x2b, 0x00 },
192 { 0xd0, 0x00 }, 194 { 0xd0, 0x00 },
193}; 195};