diff options
author | Devin Heitmueller <dheitmueller@kernellabs.com> | 2012-08-06 21:46:52 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-08-09 19:29:43 -0400 |
commit | b0c4878ebe3ad9706ea2e452331550fd6d171977 (patch) | |
tree | 44a1e6d0b9811cf7ba97e2ad42115481317da1e0 /drivers/media | |
parent | a307cfa55e2bf7889792e158e45355ccb1e63d80 (diff) |
[media] au8522: Fix off-by-one in SNR table for QAM256
The table of valid SNR values for QAM 256 is off by one, and as a result
if the SNR is oscillating between 40.0 and 39.9 dB, tools like azap show
it going back and forth between 40.0 and 0 (misleading some people,
including myself, to think signal lock is being lost or there is a
problem with register reads).
Fix the table so that 40.0 dB is properly represented.
Cc: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/frontends/au8522_dig.c | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/drivers/media/dvb/frontends/au8522_dig.c b/drivers/media/dvb/frontends/au8522_dig.c index 5fc70d6cd04f..ee8cf81cf750 100644 --- a/drivers/media/dvb/frontends/au8522_dig.c +++ b/drivers/media/dvb/frontends/au8522_dig.c | |||
@@ -157,54 +157,54 @@ static struct mse2snr_tab qam64_mse2snr_tab[] = { | |||
157 | 157 | ||
158 | /* QAM256 SNR lookup table */ | 158 | /* QAM256 SNR lookup table */ |
159 | static struct mse2snr_tab qam256_mse2snr_tab[] = { | 159 | static struct mse2snr_tab qam256_mse2snr_tab[] = { |
160 | { 16, 0 }, | 160 | { 15, 0 }, |
161 | { 17, 400 }, | 161 | { 16, 400 }, |
162 | { 18, 398 }, | 162 | { 17, 398 }, |
163 | { 19, 396 }, | 163 | { 18, 396 }, |
164 | { 20, 394 }, | 164 | { 19, 394 }, |
165 | { 21, 392 }, | 165 | { 20, 392 }, |
166 | { 22, 390 }, | 166 | { 21, 390 }, |
167 | { 23, 388 }, | 167 | { 22, 388 }, |
168 | { 24, 386 }, | 168 | { 23, 386 }, |
169 | { 25, 384 }, | 169 | { 24, 384 }, |
170 | { 26, 382 }, | 170 | { 25, 382 }, |
171 | { 27, 380 }, | 171 | { 26, 380 }, |
172 | { 28, 379 }, | 172 | { 27, 379 }, |
173 | { 29, 378 }, | 173 | { 28, 378 }, |
174 | { 30, 377 }, | 174 | { 29, 377 }, |
175 | { 31, 376 }, | 175 | { 30, 376 }, |
176 | { 32, 375 }, | 176 | { 31, 375 }, |
177 | { 33, 374 }, | 177 | { 32, 374 }, |
178 | { 34, 373 }, | 178 | { 33, 373 }, |
179 | { 35, 372 }, | 179 | { 34, 372 }, |
180 | { 36, 371 }, | 180 | { 35, 371 }, |
181 | { 37, 370 }, | 181 | { 36, 370 }, |
182 | { 38, 362 }, | 182 | { 37, 362 }, |
183 | { 39, 354 }, | 183 | { 38, 354 }, |
184 | { 40, 346 }, | 184 | { 39, 346 }, |
185 | { 41, 338 }, | 185 | { 40, 338 }, |
186 | { 42, 330 }, | 186 | { 41, 330 }, |
187 | { 43, 328 }, | 187 | { 42, 328 }, |
188 | { 44, 326 }, | 188 | { 43, 326 }, |
189 | { 45, 324 }, | 189 | { 44, 324 }, |
190 | { 46, 322 }, | 190 | { 45, 322 }, |
191 | { 47, 320 }, | 191 | { 46, 320 }, |
192 | { 48, 319 }, | 192 | { 47, 319 }, |
193 | { 49, 318 }, | 193 | { 48, 318 }, |
194 | { 50, 317 }, | 194 | { 49, 317 }, |
195 | { 51, 316 }, | 195 | { 50, 316 }, |
196 | { 52, 315 }, | 196 | { 51, 315 }, |
197 | { 53, 314 }, | 197 | { 52, 314 }, |
198 | { 54, 313 }, | 198 | { 53, 313 }, |
199 | { 55, 312 }, | 199 | { 54, 312 }, |
200 | { 56, 311 }, | 200 | { 55, 311 }, |
201 | { 57, 310 }, | 201 | { 56, 310 }, |
202 | { 58, 308 }, | 202 | { 57, 308 }, |
203 | { 59, 306 }, | 203 | { 58, 306 }, |
204 | { 60, 304 }, | 204 | { 59, 304 }, |
205 | { 61, 302 }, | 205 | { 60, 302 }, |
206 | { 62, 300 }, | 206 | { 61, 300 }, |
207 | { 63, 298 }, | 207 | { 62, 298 }, |
208 | { 65, 295 }, | 208 | { 65, 295 }, |
209 | { 68, 294 }, | 209 | { 68, 294 }, |
210 | { 70, 293 }, | 210 | { 70, 293 }, |